ShowDilationFilterDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Dilation_Click()
RasterImgEfxDlg.UIFlags = DILATIONFILTER_SHOW_PREVIEW Or _
DILATIONFILTER_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowDilationFilterDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.BinaryFilter LEADRasterView1.Raster, RasterImgEfxDlg.BinaryFilterType
End If
End Sub