This documentation is archived and is not being maintained.

CImage::SetColorTable

Sets the red, green, blue (RGB) color values for a range of entries in the palette of the DIB section.

void SetColorTable(
   UINT iFirstColor,
   UINT nColors,
   const RGBQUAD* prgbColors 
) throw( );

iFirstColor

The color table index of the first entry to set.

nColors

The number of color table entries to set.

prgbColors

A pointer to the array of RGBQUAD structures to set the color table entries.

This method supports only DIB section bitmaps.

Header: atlimage.h

Show: