ShowPosterizeDlg Example for C++ 5.0 and later
void CDialogs::OnShowPosterizeDlg()
{
int nRet;
m_pRasterColorDlg->Levels= 2;
m_pRasterColorDlg->UIFlags = POSTERIZE_SHOW_PREVIEW |
POSTERIZE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
nRet= m_pRasterColorDlg->ShowPosterizeDlg((long)this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus == DLG_OK )
{
m_pRasterProc->Posterize (m_LeadRasterView.GetRaster
(),m_pRasterColorDlg->Levels);
}
}