Available in the LEADTOOLS Imaging toolkit. |
ShowSharpenDlg Example for Visual Basic
Private Sub Sharpen_Click() Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx_U Dim RasterKrnDlg As New LEADRasterDlgKrn_U Dim nRet As Integer RasterKrnDlg.InitDlg 0 RasterImgEfxDlg.UIFlags = SHARPENFILTER_SHOW_PREVIEW Or _ SHARPENFILTER_SHOW_TOOL_ZOOMLEVEL RasterImgEfxDlg.Bitmap = LEAD1.Bitmap nRet = RasterImgEfxDlg.ShowSharpenDlg(hWnd) If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then LEAD1.Sharpen RasterImgEfxDlg.Sharpness End If RasterKrnDlg.FreeDlg End Sub