ShowMaxFilterDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub MaxFilter_Click()
RasterImgEfxDlg.Dimension = 10
RasterImgEfxDlg.UIFlags = MAXFILTER_SHOW_PREVIEW Or _
MAXFILTER_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowMaxFilterDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.MaxFilter LEADRasterView1.Raster, RasterImgEfxDlg.Dimension
End If
End Sub