is there anyway to display images in an application and if you can how do you do it?
Printable View
is there anyway to display images in an application and if you can how do you do it?
What kind of images? Every image type has its own format.
Vinod
It's dependent on the system your running under.Quote:
Originally Posted by drbearded
For example, in Windows, you'd basically use
the BitBlt() api to draw a bitmap to a windows device context (dc).
In DOS, one would probably draw the bitmap by physically writing
the video memory of the graphics adapter.
In other systems, there will be some method similar to BitBlt() above,
but the refs. for those api:s are contained in the particular sdk for the
operating system...
u r not mention clearly what type of image . if it is .bmp then u use the following API'sQuote:
Originally Posted by drbearded
LoadImage () ; or LoadBitmap() and corrosponding DestryObject() ;
BitBlt(); or StretchDIBits();
pls try.
Check the articles at http://www.codeguru.com/Cpp/G-M/bitmap/ to learn more about loading/saving/displaying/manipulating images.
the image i wanted to use is a gif
Did you even bother to take a look at the link I posted?Quote:
Originally Posted by drbearded
The first link says: Going from a JPG/GIF/BMP File to a HBITMAP File Using Plain API