ColorThreshold example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
for(int i = 0; i < 3; ++i)
{
m_pRasterProc->PutComponentMinRange(i,128);
m_pRasterProc->PutComponentMaxRange(i,255);
m_pRasterProc->PutComponentFlags(i,CLTH_TYP_BANDPASS);
}
/*Apply color Threshold effect on the image*/
m_pRasterProc->ColorThreshold(m_LeadRasterView.GetRaster(), CLTH_RGB_SPACE);
m_pRasterProc->Release();