IIXC_Page::ReduceColorsFixedPalette Method
From PDF XChange PDF SDK
Reduces color palette to the colors specified by the pFixedPalette array.
Syntax
HRESULT ReduceColorsFixedPalette([in] SAFEARRAY(ULONG) pFixedPalette, [in] IXC_DitherMethod nDitherMethod);
Parameters
- pFixedPalette
- [in] Pointer to ULONG containing the array of the palette colors. The representation of the colors in the palette should be in the 0xAARRGGBB format. For example, for black and white palette, these values should be used:
uint[] colors = { 0x00000000, 0x00FFFFFF };
- nDitherMethod
- [in] Value of IXC_DitherMethod containing the dither method.
Return Value
Returns S_OK if operation was successful or error code in other cases.