Retrieving the palette of a bitmap image

  color-palette, gdi, windows

I am loading a bitmap image (type BMP) via the GDI function LoadImage, which returns a BITMAP handle.

I know how to access the bitmap bits. But the image is in the format 8BPP, hence palettized. How can I obtain the palette entries ?

Source: Windows Questions

LEAVE A COMMENT