FunctionalLight Example for C++ 5.0 and later

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

m_pRasterProc->LightRedAmplitude = 75;
m_pRasterProc->LightGreenAmplitude = 90;
m_pRasterProc->LightBlueAmplitude = 0;
m_pRasterProc->LightAngle = 9000;
m_pRasterProc->LightFrequency = 10;
m_pRasterProc->LightPhase = 5000;
m_pRasterProc->LightFlags = FL_LINEAR_QUADRATIC | FL_LINEAR_OUTER;
m_pRasterProc->LightXOrigin = m_LeadRasterView.GetRaster ().GetBitmapWidth () / 2;
m_pRasterProc->LightYOrigin = m_LeadRasterView.GetRaster().GetBitmapHeight () / 2;

m_pRasterProc->FunctionalLight(m_LeadRasterView.GetRaster()); 
m_pRasterProc->Release();