IIXC_Page::ReplaceColor Method
From PDF XChange PDF SDK
The method replaces one color with another on the page.
Contents
Syntax
HRESULT ReplaceColor([in] ULONG fromColor, [in] ULONG toColor, ULONG nFlags, [in, defaultvalue(NULL)] RECT* pRect);
Parameters
- fromColor
- [in] Specifies the color to be replaced.
- toColor
- [in] Specifies replacement color.
- nFlags
- Combination of flags which specifies how the data will be copied. The following flags can be used enum IXC_ColorFlags
- pRect
- [in, defaultvalue(NULL)] Pointer to RECT structure which defines the rectangular area in which the operation will be performed.
Return Value
Returns S_OK if operation was successful or error code in other cases.