ColoredBalls example for Visual C++

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

m_pRasterProc->PutColoredBallsCount(7); 

m_pRasterProc->PutColoredBalls (0, RGB(230,50,50)); 
m_pRasterProc->PutColoredBalls (0, RGB(230,200,160)); 
m_pRasterProc->PutColoredBalls (0, RGB(255,255,128)); 
m_pRasterProc->PutColoredBalls (0, RGB(240,50,100)); 
m_pRasterProc->PutColoredBalls (0, RGB(255,255,180)); 
m_pRasterProc->PutColoredBalls (0, RGB(170,240,100)); 
m_pRasterProc->PutColoredBalls (0, RGB(255,255,255)); 

m_pRasterProc->ColoredBalls(m_LeadRasterView.GetRaster(), 1000, 25, 15, 4500, 
RGB(255,255,255),RGB(255,0,0),RGB(255,255,0),64,10,100, CLRBALLS_SHADING_CIRCULAR|CLRBALLS_STICKER|
CLRBALLS_IMAGE|CLRBALLS_BALLCLR_OPACITY); 

m_pRasterProc->Release();