DrawStar Example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
int CenterX, CenterY, iStarWidth, iStarHeight;
CenterX = m_LeadRasterView.GetRaster ().GetBitmapWidth () / 2;
CenterY = m_LeadRasterView.GetRaster().GetBitmapHeight () / 2;
iStarWidth = m_LeadRasterView.GetRaster().GetBitmapWidth() / 2;
iStarHeight = m_LeadRasterView.GetRaster().GetBitmapHeight() / 2;
m_pRasterProc->DrawStar(m_LeadRasterView.GetRaster(), CenterX, CenterY, 5, iStarWidth, iStarHeight, 50, 0, 0, 0, 0, 0, 0, RGB(0, 0, 255), RGB(255, 0, 0), 100, STR_INSIDE);
m_pRasterProc->Release();