Functions | |
void | CxImage::BlendPalette (COLORREF cr, long perc) |
BYTE | CxImage::GetNearestIndex (RGBQUAD c) |
RGBQUAD * | CxImage::GetPalette () const |
bool | CxImage::GetPaletteColor (BYTE i, BYTE *r, BYTE *g, BYTE *b) |
RGBQUAD | CxImage::GetPaletteColor (BYTE idx) |
DWORD | CxImage::GetPaletteSize () |
bool | CxImage::IsGrayScale () |
bool | CxImage::IsIndexed () const |
bool | CxImage::IsSamePalette (CxImage &img, bool bCheckAlpha=true) |
void | CxImage::SetGrayPalette () |
void | CxImage::SetPalette (rgb_color *rgb, DWORD nColors=256) |
void | CxImage::SetPalette (RGBQUAD *pPal, DWORD nColors=256) |
void | CxImage::SetPalette (DWORD n, BYTE *r, BYTE *g, BYTE *b) |
void | CxImage::SetPaletteColor (BYTE idx, COLORREF cr) |
void | CxImage::SetPaletteColor (BYTE idx, RGBQUAD c) |
void | CxImage::SetPaletteColor (BYTE idx, BYTE r, BYTE g, BYTE b, BYTE alpha=0) |
void | CxImage::SetStdPalette () |
void | CxImage::SwapIndex (BYTE idx1, BYTE idx2) |
|
Colorize the palette.
|
|
Returns the best palette index that matches a specified color. |
|
returns the pointer to the first palette index |
|
Returns the color of the specified index.
|
|
Returns the color of the specified index. |
|
returns the palette dimension in byte |
|
Returns true if the image has 256 colors and a linear grey scale palette. |
|
Returns true if the image has 256 colors or less. |
|
Checks if image has the same palette, if any.
|
|
Sets (or replaces) the palette to gray scale palette. The function doesn't change the pixels; for standard gray scale conversion use GrayScale(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets a palette with standard colors for 4 and 8 bpp images. |
|
swap two indexes in the image and their colors in the palette |