ColorReplace example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterProc->ReplaceColorsCount = 1;
m_pRasterProc->PutReplaceColorValue(0,RGB(200, 0, 35));
m_pRasterProc->PutReplaceColorFuzziness(0,100);
m_pRasterProc->ColorReplace(m_LeadRasterView.GetRaster(),9000, 0, 0);
m_pRasterProc->Release();