UserShape Example for C++ 5.0 and later

 

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

m_pRasterProc->LightAngle = 9000;
m_pRasterProc->LightFrequency = 10;
m_pRasterProc->LightFlags = FL_FREEHAND | FL_ADD;
m_pRasterProc->UserShapeCount = 10;

for (int i = 0; i<m_pRasterProc->UserShapeCount;++i)
{   
   m_pRasterProc->PutUserShape(i, i * 100);
}

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