Advertisement

CreateBitmap fails

Started by May 27, 2000 01:30 PM
1 comment, last by tcs 24 years, 7 months ago
Hi, I''m trying to create simple win32 bitmap with create bitmap. m_hBitmap = CreateBitmap(256, 256, 1, 1, NULL); works just fine, I get a monochrome one. m_hBitmap = CreateBitmap(256, 256, 1, 8, NULL); One color plane and 8 bits, should be a 256 grayscale. The functions returns a valid handle, but I can''t do anything with the bitmap. m_hBitmap = CreateBitmap(256, 256, 3, 24, NULL); Doesn''t work, too. I should get a trucolor bitmap. But I can''t do anything with it. Any ideas ??? Tim -------------------------- www.glvelocity.com glvelocity.demonews.com
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity
what exactly do you mean by saying you can''t do anything with it?
do you draw something on the bitmap and display it, but you don''t see any changes on it?


- pouya
--------------
When I die, I want to go like my grandfather did, peacefully in his sleep. Not yelling and screaming like all the passengers in his car.
Advertisement
The Bimap simply isn''t there. You can''t draw in it, can''t blit with it...

CreateBitmap seems to be absolutely broken, Never ever saw a working example with it. Tried it under VC++ and VB6, with every settings.

--------------------------
www.glvelocity.com
glvelocity.demonews.com
Tim--------------------------glvelocity.gamedev.netwww.gamedev.net/hosted/glvelocity

This topic is closed to new replies.

Advertisement