ShowImpressionistDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Impressionist_Click()
RasterImgEfxDlg.UIFlags = IMPRESSIONIST_SHOW_PREVIEW Or _
IMPRESSIONIST_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowImpressionistDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.Impressionist LEADRasterView1.Raster, RasterImgEfxDlg.HorizontalDimension, _
RasterImgEfxDlg.VerticalDimension
End If
End Sub