ShowUnsharpMaskDlg Example for C++ 5.0 and later

void CDialogs::OnShowUnsharpMaskDlg()
{
   int nRet = 0; 

   m_pRasterImageEfxDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
   m_pRasterImageEfxDlg->UIFlags = UNSHARPMASKFILTER_SHOW_PREVIEW |
                                   UNSHARPMASKFILTER_SHOW_TOOL_ZOOMLEVEL; 

   nRet = m_pRasterImageEfxDlg->ShowUnsharpMaskDlg((long)this->m_hWnd); 
  
   if (nRet == 0 && m_pRasterImageEfxDlg->DialogStatus == DLG_OK) 
   {
      nRet = m_pRasterProc->UnsharpMask (m_LeadRasterView.GetRaster (),
                                          m_pRasterImageEfxDlg->Amount
                                          m_pRasterImageEfxDlg->Radius
                                          m_pRasterImageEfxDlg->Threshold
                                          (ColorSpaceConstants)m_pRasterImageEfxDlg->ImageEffectFlags
                                       ); 
   }
}