ShowSaturationDlg Example for Visual Basic

Private Sub Saturation_Click()
	Dim RasterColorDlg As New LEADRasterDlgClr_U
	Dim RasterKrnDlg As New LEADRasterDlgKrn_U
	Dim nRet As Integer

	RasterKrnDlg.InitDlg 0
	RasterColorDlg.UIFlags = SATURATION_SHOW_PREVIEW Or _
							SATURATION_SHOW_TOOL_ZOOMLEVEL
	RasterColorDlg.Bitmap = LEAD1.Bitmap
	nRet = RasterColorDlg.ShowSaturationDlg(hWnd)
	If (nRet = 0 And RasterColorDlg.DialogStatus = DLG_OK) Then
		LEAD1.Saturation RasterColorDlg.Change
	End If
	RasterKrnDlg.FreeDlg
End Sub