ULONG XLATEOBJ_cGetPalette(
|
IN XLATEOBJ *pxlo, | |
|
IN ULONG iPal, | |
|
IN ULONG cPal, | |
|
IN ULONG *pPal | |
|
); |
XLATEOBJ_cGetPalette retrieves RGB colors from the specified PAL_INDEXED palette.
|
Value |
Meaning |
|
XO_SRCPALETTE |
Source palette |
|
XO_DESTPALETTE |
Destination palette |
XLATEOBJ_cGetPalette returns the number of palette entries written if pPal is not null. If pPal is null, the return value is the total number of entries in the palette. A value of zero is returned if XLATEOBJ is null or its palette is invalid.
The driver needs to know the palette to perform some methods of color blending.