ShowEdgeDetectorDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub EdgeDetector_Click()
RasterImgEfxDlg.UIFlags = EDGEDETECTOR_SHOW_PREVIEW Or _
EDGEDETECTOR_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowEdgeDetectorDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc. EdgeDetector LEADRasterView1.Raster, RasterImgEfxDlg.Threshold, _
RasterImgEfxDlg.EdgeDetectionFilterType
End If
End Sub