ShowUnsharpMaskDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub UnsharpMask_Click()
RasterImgEfxDlg.UIFlags = UNSHARPMASKFILTER_SHOW_PREVIEW Or _
UNSHARPMASKFILTER_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowUnsharpMaskDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.UnsharpMask LEADRasterView1.Raster, RasterImgEfxDlg.Amount, _
RasterImgEfxDlg.Radius, _
RasterImgEfxDlg.Threshold, _
RasterImgEfxDlg.ImageEffectFlags
End If
End Sub