ShowPixelateDlg Example for C++ 5.0 and later
void CDialogs::OnShowPixelateDlg()
{
int nRet;
m_pRasterImageEfxDlg->UIFlags = PIXELATE_SHOW_PREVIEW |
PIXELATE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap
();
nRet= m_pRasterImageEfxDlg->ShowPixelateDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
m_pRasterProc->Pixelate(m_LeadRasterView.GetRaster
(),
m_pRasterImageEfxDlg->CellWidth,
m_pRasterImageEfxDlg->CellHeight,
m_pRasterImageEfxDlg->Opacity,
m_pRasterImageEfxDlg->CenterX,
m_pRasterImageEfxDlg->CenterY,
m_pRasterImageEfxDlg->ImageEffectFlags
);
}
}