DiceEffect Example for C++ 5.0 and later

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

m_pRasterProc->DiceEffect(m_LeadRasterView.GetRaster (), 16, 16, 0, 
                                       RGB(0, 0, 0), 
                                       BITMAP_RESIZE |
                                       DICE_SIZE |
                                       DICE_BORDER);
m_pRasterProc->Release();