# Function Reference

# _WinAPI_GetDIBColorTable

Retrieves RGB color table from the DIB section bitmap

#include <WinAPIGdi.au3>
_WinAPI_GetDIBColorTable ( $hBitmap )

## Parameters

$hBitmap | A DIB section bitmap from which to retrieve the color table.

## Return Value

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.

## Remarks

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.

## Related

_WinAPI_GetObject

## See Also

Search GetDIBColorTable in MSDN Library.