RingEffect Example for C++ 5.0 and later

int iXorg,iYorg,iRadius;
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);

iXorg = m_LeadRasterView.GetRaster ().GetBitmapWidth () / 2;
iYorg = m_LeadRasterView.GetRaster().GetBitmapHeight () / 2;
iRadius = iXorg;

m_pRasterProc->RingEffect(m_LeadRasterView.GetRaster(), iXorg, iYorg, 
                                    iRadius, 10, 0, 
                                    RGB(0, 0, 0), 100, 
                                    RING_COLOR |
                                    RING_FIXEDANGLE |
                                    RING_MAXRADIUS);
m_pRasterProc->Release();