Function Reference


_WinAPI_SetDIBColorTable

Sets RGB color table in the DIB section bitmap

#include <WinAPIGdi.au3>
_WinAPI_SetDIBColorTable ( $hBitmap, $tColorTable, $iColorCount )

Parameters

$hBitmap A DIB section bitmap in which to set the color table.
$tColorTable "dword[n]" structure that represents a DIB color table that to be set.
$iColorCount The number of color table entries to set.

Return Value

Success: The number of color table entries that the function sets.
Failure: 0.

Remarks

The _WinAPI_GetDIBColorTable() function sets 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.

See Also

Search SetDIBColorTable in MSDN Library.