ShowContourFilterDlg Example for C++ 5.0 and later
void CDialogs::OnShowContourFilterDlg()
{
int nRet = 0;
m_pRasterImageEfxDlg->MaxError= 5;
m_pRasterImageEfxDlg->DeltaDirection= 5;
m_pRasterImageEfxDlg->PutContourOption(CONTOUR_LINK_COLOR);
m_pRasterImageEfxDlg->Threshold = 5;
m_pRasterImageEfxDlg->ContourOptionFlags= CONTOURFILTER_SHOW_OPTION_ALL;
m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap
();
m_pRasterImageEfxDlg->UIFlags = CONTOURFILTER_SHOW_PREVIEW |
CONTOURFILTER_SHOW_DELTADIRECTION |
CONTOURFILTER_SHOW_MAXIMUMERROR |
CONTOURFILTER_SHOW_OPTION |
CONTOURFILTER_SHOW_THRESHOLD |
CONTOURFILTER_SHOW_TOOL_ZOOMLEVEL;
nRet = m_pRasterImageEfxDlg->ShowContourFilterDlg((long)this->m_hWnd);
if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK)
{
nRet = m_pRasterProc->ContourFilter method (m_LeadRasterView.GetRaster
(),
m_pRasterImageEfxDlg->Threshold,
m_pRasterImageEfxDlg->DeltaDirection,
m_pRasterImageEfxDlg->MaxError,
m_pRasterImageEfxDlg->GetContourOption()
);
}
}