Results 1 to 4 of 4

Thread: Display image...

  1. #1

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Display image...

    How can I display an image from the loaded *.gif or *.bmp image file with CreateFile and ReadFile API?

    regards,
    Chris.C

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    With difficulty
    You'd have to try and create a device context from the data of the file ... you sure you can't use a GenerateDC() function or something similar instead of reading in the file ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    actually, im spliting the GIF imgae file into an individual image(per frame), in order to display the image i can create a temporary GIF file and reload into a picturebox/image control. But it seem too much file I/O involve.

    Hence, I plan to use the read data to display the image without save into the temporary GIF file. Do you think this is a good method? or do suggest/recommend some others method to me

    regards,

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Hmmm.
    I'll have a think
    I would suggest messaging zaei on this one too ... sastraxi and fox too ...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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