ShowHistoContrastDlg Example for Visual Basic
Dim RasterColorDlg As New LEADRasterDlgClr
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub HistoContrast_Click()
RasterColorDlg.UIFlags = HISTOCONTRAST_SHOW_PREVIEW Or _
HISTOCONTRAST_SHOW_TOOL_ZOOMLEVEL
RasterColorDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterColorDlg.ShowHistoContrastDlg (hWnd)
If (nRet = 0 And RasterColorDlg.DialogStatus = DLG_OK) Then
RasterProcHistoContrast LEADRasterView1.Raster, RasterColorDlg.Change
End If
End Sub