ShowPosterizeDlg Example for Visual Basic
Dim RasterColorDlg As New LEADRasterDlgClr
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Posterize_Click()
RasterColorDlg.Levels = 2
RasterColorDlg.UIFlags = POSTERIZE_SHOW_PREVIEW Or _
POSTERIZE_SHOW_TOOL_ZOOMLEVEL
RasterColorDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterColorDlg.ShowPosterizeDlg (hWnd)
If (nRet = 0 And RasterColorDlg.DialogStatus = DLG_OK) Then
RasterProc.Posterize LEADRasterView1.Raster, RasterColorDlg.Levels
End If
End Sub