IIXC_Page::ReduceColorsFixedPalette Method
From PDF XChange PDF SDK
(Automatic page editing by robot) |
|||
Line 3: | Line 3: | ||
{{#customTitle:IIXC_Page::ReduceColorsFixedPalette Method}} | {{#customTitle:IIXC_Page::ReduceColorsFixedPalette Method}} | ||
{{#parentPage:PXV:IIXC_Page#Methods|ReduceColorsFixedPalette|method}} | {{#parentPage:PXV:IIXC_Page#Methods|ReduceColorsFixedPalette|method}} | ||
− | |||
{{ToReview}} | {{ToReview}} | ||
− | + | Reduces color palette to the colors specified by the pFixedPalette array. | |
== Syntax == | == Syntax == | ||
Line 14: | Line 13: | ||
== Parameters == | == Parameters == | ||
;pFixedPalette | ;pFixedPalette | ||
− | :[in] Pointer to ULONG. | + | :[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: <pre class="brush:c#">uint[] colors = { 0x00000000, 0x00FFFFFF };</pre> |
;nDitherMethod | ;nDitherMethod | ||
− | :[in] Value of [[PXV:IXC_DitherMethod|IXC_DitherMethod]]. | + | :[in] Value of [[PXV:IXC_DitherMethod|IXC_DitherMethod]] containing the dither method. |
== Return Value == | == Return Value == |
Latest revision as of 01:42, 8 January 2019
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.