Microsoft DirectX 9.0 |
The PALETTE_ENTRIES macro retrieves the maximum number of colors in the palette of a specified bitmap.
Syntax
PALETTE_ENTRIES(pbmi)
Parameters
pbmi
Pointer to a VIDEOINFOHEADER structure or VIDEOINFO structure.
Return Value
Returns 2 raised to the power of the color depth; that is, 1 << bmiHeader.biBitCount.
See Also