SampleTarget Example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterProc->SampleTarget(m_LeadRasterView.GetRaster (), RGB(50, 100, 150), RGB(60, 90 , 150), SAMP_RED| SAMP_MID);
m_pRasterProc->Release();