CreateMappedBitmap() and LoadMappedBitmap() are unsuccessful with non-indexed bitmaps (329006)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q329006

SYMPTOMS

When you try to use CreateMappedBitmap() method and Microsoft Foundation Classes LoadMappedBitmap() to load a resource bitmap that has more than 256 colors, neither method succeeds.

CAUSE

Neither CreateMappedBitmap() nor LoadMappedBitmap() is designed to work with bitmaps that do not use a color table.

RESOLUTION

If you want color remapping in noncolortable-based bitmaps, you have to code your own solution.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:5/10/2006
Keywords:kbDSWGDI2003Swept kbGDI kbprb KB329006