Results 1 to 3 of 3

Thread: view image in file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    england
    Posts
    87

    Question 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

  2. #2
    jim mcnamara
    Guest
    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")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    england
    Posts
    87
    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 ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width