ShowGaussianBlur Example for C++ 5.0 and later
void CDialogs::OnShowGaussianBlurDlg()
{
int nRet = 0;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
m_pRasterImageEfxDlg->UIFlags = GAUSSIANBLUR_SHOW_PREVIEW |
GAUSSIANBLUR_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImageEfxDlg->Radius= 5;
nRet = m_pRasterImageEfxDlg->ShowGaussianBlurDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
nRet = m_pRasterProc->GaussianFilter (m_LeadRasterView.GetRaster (),
m_pRasterImageEfxDlg->Radius
);
}
}