ShowBrightnessDlg Example for Visual Basic

    Dim RasterColorDlg As New LEADRasterDlgClr_U
    Dim nRet As Integer
    
    RasterColorDlg.UIFlags = BRIGHTNESS_SHOW_PREVIEW Or _
                             BRIGHTNESS_SHOW_TOOL_ZOOMLEVEL
    RasterColorDlg.Bitmap = LEAD1.Bitmap
    nRet = RasterColorDlg.ShowBrightnessDlg(hWnd)
    If (nRet = 0 And RasterColorDlg.DialogStatus) Then
       LEAD1.Intensity RasterColorDlg.Change
    End If