ShowAntiAliasDlg Example for C++ 5.0 and later
void CDialogs::OnShowAntiAliasDlg()
{
int nRet = 0;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
m_pRasterImageEfxDlg->UIFlags = ANTIALIAS_SHOW_PREVIEW |
ANTIALIAS_SHOW_TOOL_ZOOMLEVEL;
m_pRasterImageEfxDlg->Radius = 5;
nRet = m_pRasterImageEfxDlg->ShowAntiAliasDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
nRet = m_pRasterProc->AntiAlias (m_LeadRasterView.GetRaster
(),
m_pRasterImageEfxDlg->Threshold,
m_pRasterImageEfxDlg->Dimension,
m_pRasterImageEfxDlg->GetAntiAliasFilter()
);
}
}