From Tracker Software PDF SDK
The ReplaceColor method replaces one color with another in the page or rectangular area.
HRESULT ReplaceColor([in] ULONG nFromColor, [in] ULONG nToColor, ULONG nFlags, [in, defaultvalue(NULL)] RECT* stRect);
- [in] Specifies the color to be replaced.
- [in] Specifies replacement color.
- Combination of IXC_ColorFlags which specifies how the data will be copied.
- [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.
Returns S_OK if operation was successful or error code in other cases.