HueSaturationIntensity example for C++ 5.0 and later

ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);

m_pRasterProc->HSICount = 1;
m_pRasterProc->PutHSIHue(0,18000);
m_pRasterProc->PutHSISaturation(0,0);
m_pRasterProc->PutHSIIntensity(0,0);
m_pRasterProc->PutHSIOuterLow(0,315);
m_pRasterProc->PutHSIOuterHigh(0,45);
m_pRasterProc->PutHSIInnerLow(0,345);
m_pRasterProc->PutHSIInnerHigh(0,15);

/* change the red color to green*/
m_pRasterProc->HueSaturationIntensity(m_LeadRasterView.GetRaster(), 0, 0, 0);

m_pRasterProc->Release();