bmp files?

In this category you can exchange your programming questions and solutions.
Post Reply
wolfy2261
Posts: 2
Joined: Tue Nov 08, 2005 3:00 pm

bmp files?

Post: # 367Post wolfy2261
Thu Dec 11, 2008 7:58 am

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

PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

bmp files?

Post: # 368Post PaPi
Wed Dec 17, 2008 9:22 am

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

PaPi
Posts: 114
Joined: Wed May 16, 2007 11:55 am

bmp files?

Post: # 369Post PaPi
Wed Dec 17, 2008 9:45 am

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

Post Reply