IIXC_Page::ReduceColorsFixedPalette Method

From PDF XChange PDF SDK
Revision as of 02:42, 8 January 2019 by Palamar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Reduces color palette to the colors specified by the pFixedPalette array.


HRESULT ReduceColorsFixedPalette([in]  SAFEARRAY(ULONG)  pFixedPalette,
                                 [in]  IXC_DitherMethod  nDitherMethod);


[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 };
[in] Value of IXC_DitherMethod containing the dither method.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also