| Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 | 1. BMP loading #3207 Posted by: 2004-01-08 20:49:43 | Hello, I try to load a Bmp image to my program..
char * filename = "c:\\path\\to\\my\\image.bmp"; HBITMAP hBitmap = (HBITMAP) LoadImage(NULL, filename, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE); pdc->DrawState(CPoint(0,0), CSize(imageWidth,imageHeight),hBitmap, DST_BITMAP,NULL);
as you see , I need to have the entire name of my image to load it..( filename)
The problem is that I put my images into one archive. I can extract each of them to my hard disque and then use them.. But I think it is better to use them directly reading into the archive..
Any idea or help on this matter : how read a BMP image from an archive to load it ?
thank you for your help | 2. Re: BMP loading #3209 Posted by: KaReL 2004-01-10 16:20:40 | Maybe you're mistaken, but what I see is MFC & API coding ...
Please post only wxWindows related questions ...
As for such: have a look at the documentation of wxBitmap.
------------------------ Website: www.KaReLs0ft.be | 3. Re: BMP loading #3212 Posted by: upCASE 2004-01-11 03:42:09 | Hi! Using wxWindows have a look at wxZipInputStream and load the bitmap or image using this stream.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! | Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |
|
|