IIXC_Page::ReduceColorsFixedPalette Method

From PDF XChange PDF SDK
Jump to: navigation, search
(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}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
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 02: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.

See Also

IIXC_Page