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)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IIXC_Page::ReplaceColor Method}}
 
{{#customTitle:IIXC_Page::ReplaceColor Method}}
{{#parentPage:PXV:IIXC_Page#Methods|ReplaceColor Method|method}}
+
{{#parentPage:PXV:IIXC_Page#Methods|ReplaceColor|method}}
  
 
The '''ReplaceColor''' method replaces one color with another in the page or rectangular area.
 
The '''ReplaceColor''' method replaces one color with another in the page or rectangular area.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT ReplaceColor([in]                      ULONG  fromColor,
+
<pre class="brush:cpp;gutter:false">HRESULT ReplaceColor([in]                      ULONG  nFromColor,
                     [in]                      ULONG  toColor,
+
                     [in]                      ULONG  nToColor,
 
                                               ULONG  nFlags,
 
                                               ULONG  nFlags,
                     [in, defaultvalue(NULL)]  RECT*  pRect);</pre>
+
                     [in, defaultvalue(NULL)]  RECT*  stRect);</pre>
  
 
== Parameters ==
 
== Parameters ==
;fromColor
+
;nFromColor
 
:[in]  Specifies the color to be replaced.
 
:[in]  Specifies the color to be replaced.
;toColor
+
;nToColor
 
:[in]  Specifies replacement color.
 
:[in]  Specifies replacement color.
 
;nFlags
 
;nFlags
 
: 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.
;pRect
+
;stRect
 
:[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.
  
Line 26: Line 26:
  
 
== See Also ==
 
== See Also ==
:[[PXV:IIXC_Page|IIXC_Page]]
+
[[PXV:IIXC_Page|IIXC_Page]]
:[[PXV:IXC_ColorFlags|IXC_ColorFlags]]
+

Latest revision as of 03:16, 15 June 2015

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

Syntax

HRESULT ReplaceColor([in]                      ULONG  nFromColor,
                     [in]                      ULONG  nToColor,
                                               ULONG  nFlags,
                     [in, defaultvalue(NULL)]  RECT*  stRect);

Parameters

nFromColor
[in] Specifies the color to be replaced.
nToColor
[in] Specifies replacement color.
nFlags
Combination of IXC_ColorFlags which specifies how the data will be copied.
stRect
[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