IIXC_Page::ReplaceColor Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 7: Line 7:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT ReplaceColor([in]                      ULONG  nFromColor,
+
<pre class="brush:cpp;gutter:false">HRESULT ReplaceColor([in]                      ULONG  fromColor,
                     [in]                      ULONG  nToColor,
+
                     [in]                      ULONG  toColor,
                                               ULONG  nFlags,
+
                                               ULONG  Flags,
                     [in, defaultvalue(NULL)]  RECT*  stRect);</pre>
+
                     [in, defaultvalue(NULL)]  RECT*  Rect);</pre>
  
 
== Parameters ==
 
== Parameters ==
;nFromColor
+
;fromColor
 
:[in]  Specifies the color to be replaced.
 
:[in]  Specifies the color to be replaced.
;nToColor
+
;toColor
 
:[in]  Specifies replacement color.
 
:[in]  Specifies replacement color.
;nFlags
+
;Flags
 
: Combination of [[PXV:IXC_ColorFlags|IXC_ColorFlags]] which specifies how the data will be copied.
 
: Combination of [[PXV:IXC_ColorFlags|IXC_ColorFlags]] which specifies how the data will be copied.
;stRect
+
;Rect
 
:[in, defaultvalue(NULL)]  Pointer to RECT structure which defines the rectangular area in which the operation will be performed. If set to <tt>NULL</tt> then the entire page will be changed.
 
:[in, defaultvalue(NULL)]  Pointer to RECT structure which defines the rectangular area in which the operation will be performed. If set to <tt>NULL</tt> then the entire page will be changed.
  

Revision as of 06:51, 12 June 2015

The ReplaceColor method replaces one color with another in the page or rectangular area.

Syntax

HRESULT ReplaceColor([in]                      ULONG  fromColor,
                     [in]                      ULONG  toColor,
                                               ULONG  Flags,
                     [in, defaultvalue(NULL)]  RECT*  Rect);

Parameters

fromColor
[in] Specifies the color to be replaced.
toColor
[in] Specifies replacement color.
Flags
Combination of IXC_ColorFlags which specifies how the data will be copied.
Rect
[in, defaultvalue(NULL)] Pointer to RECT structure which defines the rectangular area in which the operation will be performed. If set to NULL then the entire page will be changed.

Return Value

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

See Also

IIXC_Page