-
view image in file
I have a headache that can be cured if someone please help me out with this one.
I need to open a fits file (flexible image transport system) and view the the image(can be minipulated as bmp i was told) in it. the problem is that there is a header in front of the image. The header has the word "end" at the end of it. does anybody know how i can print this image out on a picture box or form ??
sorry i cant attach a fits file for you guys to try out. but they can be found here :
http://www.telescope.org/rti/examples/index.html
---------------------------------------------------------------------
vb rules
-
Why didn't you say it was binary to start? (see other post)
Code:
open "myfile" for binary as #1
p=lof(1)
a$=space$(p)
get #1,,a$
open "anotherfile" for binary as #2
p=instr(a$,"end")
p=p+len("end")
a$=mid(a$,p)
put #2,,a$
close #1
close #2
' assuming these really are bmp files add a Picture control
Picture1.Picture = LoadPicture("anotherfile")
-
thanks for your reply
i was wrong about the bmp data
apparently the image inside couldnt be open as a bitmap
i think i just hit a brick wall on this one
any chance you could help me out futher ?