Page 1 of 1
bmp files?
Posted: Thu Dec 11, 2008 7:58 am
by wolfy2261
i am new to fnx basic and i can`t figure out
how to load a bmp file into a image
like
open file dialog
pick a file
chocie = filename
then filename = bmp
but how do i load the bmp file into the image
bmp files?
Posted: Wed Dec 17, 2008 9:22 am
by PaPi
Hi, there are a sample:
`image_sample.bas by PaPi 17-12-2008
object myform as form
width=500
height=500
object image_one as image
autosize=true
bmp="your_image.bmp" ` this is... (see the fnxbasic help !!! )
end object
end object
myform.ShowModal
PaPi
bmp files?
Posted: Wed Dec 17, 2008 9:45 am
by PaPi
And there is an another sample:
`----------------------------------------------
`image_sample_two.bas by PaPi 17-12-2008
dim picfile as filedialog
object myform as form
width=500
height=500
onactivate=main
object image_one as image
autosize=true
end object
end object
myform.ShowModal
sub main()
if picfile.show=false then exit sub
image_one.bmp=picfile.FileName
end sub
`----------------------------------------------
yours sincerelly
PaPi