Pixelate Example for C++ 5.0 and later

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

int CenterX  = m_LeadRasterView.GetRaster().GetBitmapWidth()/2;
int CenterY  =  m_LeadRasterView.GetRaster().GetBitmapHeight()/2;
m_pRasterProc->Pixelate(m_LeadRasterView.GetRaster(),5, 10, 100, CenterX, CenterY, PIX_AVR | PIX_RAD | PIX_WPER |PIX_HPER);
m_pRasterProc->Release();