LensFlare Example for C++ 5.0 and later

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

int CenterX = m_LeadRasterView.GetRaster ().GetBitmapWidth ()/4;

int CenterY = m_LeadRasterView.GetRaster().GetBitmapHeight ()/4;
m_pRasterProc->LensFlare(m_LeadRasterView.GetRaster(),CenterX, CenterY ,100, LNS_TYPE_1,  RGB(100, 150, 10));
m_pRasterProc->Release();