PDA

Click to See Complete Forum and Search --> : Display image...


Chris
Jan 21st, 2002, 01:22 AM
How can I display an image from the loaded *.gif or *.bmp image file with CreateFile and ReadFile API?

regards,
Chris.C

plenderj
Jan 22nd, 2002, 06:29 AM
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 ?

Chris
Jan 22nd, 2002, 10:47 AM
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,

plenderj
Jan 22nd, 2002, 12:15 PM
Hmmm.
I'll have a think :)
I would suggest messaging zaei on this one too ... sastraxi and fox too ...