Sets RGB color table in the DIB section bitmap
#include <WinAPIGdi.au3>
_WinAPI_SetDIBColorTable ( $hBitmap, $tColorTable, $iColorCount )
$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. |
Success: | The number of color table entries that the function sets. |
Failure: | 0. |
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.
Search SetDIBColorTable in MSDN Library.