Delen via


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( );

Parameters

  • 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.

Remarks

This method supports only DIB section bitmaps.

Requirements

Header: atlimage.h

See Also

Reference

CImage Class

CImage::GetColorTable

Other Resources

CImage Members