Downconverting froma 32-bit bitmap to a 4-bit bitmap
-
I am trying to create a 4-bit bitmap from a 32-bit bitmap. Obviously this demands some sort of downcoversion from the 32-bit pixel values to the 4-bit values. I call GetDIBits with a PBITMIPINFO that is a 4-bit bitmap with a 16 color table. GetDIBits will do the downcoversion for me automatically right?
-
I am trying to create a 4-bit bitmap from a 32-bit bitmap. Obviously this demands some sort of downcoversion from the 32-bit pixel values to the 4-bit values. I call GetDIBits with a PBITMIPINFO that is a 4-bit bitmap with a 16 color table. GetDIBits will do the downcoversion for me automatically right?
TheDelChop wrote:
GetDIBits will do the downcoversion for me automatically right?
Yes. I believe it creates the color table for you as well (based on the standard VGA palette according to the docs). This article may or may not help: How To Convert Between Device-Dependent Bitmaps and DIBs[^] Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder