IntensityDetect example for C++ 5.0 and later

ILEADRasterProcess* m_pRasterProc= NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
   m_pRasterProc->IntensityDetect(m_LeadRasterView.GetRaster(),128,
                                                               255,
                                                            RGB(0, 0, 0),
                                                            RGB(255, 255, 255),
                                                            CHANNEL_MASTER);
   m_pRasterProc->Release();