Cubism Example for C++ 5.0 and later

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

m_pRasterProc->Cubism( m_LeadRasterView.GetRaster (), 5,15,200, 4500, RGB(255,0,0),   CUB_COLOR | CUB_RECT | CUB_RAND);   
m_pRasterProc->Release();