Retrieves RGB color table from the DIB section bitmap
#include <WinAPIGdi.au3>
_WinAPI_GetDIBColorTable ( $hBitmap )
$hBitmap | A DIB section bitmap from which to retrieve the color table. |
Success: | "dword[n]" structure that contains a color information from the DIB color table, @extended flag will contain the number of colors in this structure. |
Failure: | Sets the @error flag to non-zero. |
The _WinAPI_GetDIBColorTable() function retrieves a color table for DIB section bitmaps that use 1, 4, or 8 bits-per-pixel.
A DIB section bitmaps that use bits-per-pixel value greater than eight do not have a color table, but they do have associated color masks.
Call the _WinAPI_GetObject() function to retrieve those color masks.
Search GetDIBColorTable in MSDN Library.