Can I construct CBitmap from heap
-
Hi, I download a '.bmp' file through internet and save bits in the heap like char*, can I create CBitmap without save file to disk. :)
Is CBitmap really what you want? CBitmaps are device-depentent bitmaps (DDB) while a .bmp is device independent bitmap (DIB). You can convert bitmaps from whatever type to whatever other type, but you need to specify what type you want the resulting bitmap to be. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Is CBitmap really what you want? CBitmaps are device-depentent bitmaps (DDB) while a .bmp is device independent bitmap (DIB). You can convert bitmaps from whatever type to whatever other type, but you need to specify what type you want the resulting bitmap to be. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
I don't know : ) but i fix it, i save file on disk and read it from there. Furst i try to separate data from header in .bmp file, because i saw one function which draw on dc directly from data bits of .bmp, but something get wrong and save it on the disk. work fine now.