ShowContrastDlg Example for Visual Basic
Dim RasterColorDlg As New LEADRasterDlgClr
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Contrast_Click()
RasterColorDlg.UIFlags = CONTRAST_SHOW_PREVIEW Or _
CONTRAST_SHOW_TOOL_ZOOMLEVEL
RasterColorDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterColorDlg.ShowContrastDlg (hWnd)
If (nRet = 0 And RasterColorDlg.DialogStatus = DLG_OK) Then
RasterProc.Contrast LEADRasterView1.Raster, RasterColorDlg.Change
End If
End Sub