BrightnessContrastParams type

The parameters of a BrightnessContrast effect: the brightness and the contrast.

The type mirrors the GDI+ BrightnessContrastParams structure. A BrightnessContrast takes it in its constructor and in its Parameters property.

Fields

Field Type Meaning
brightness Long The change of brightness, from -255 to 255. 0 changes nothing.
contrast Long The change of contrast, from -100 to 100. 0 changes nothing.

Creating

Syntax: params = BrightnessContrastParams( brightness, contrast )

brightness, contrast
required Long values for the fields.
Dim user As GdiPlusUser = GdiPlusUser()

Dim p As BrightnessContrastParams = BrightnessContrastParams(40, -10)
Debug.Print p.brightness & " " & p.contrast

Dim fx As BrightnessContrast = BrightnessContrast(p)
Debug.Print fx.LastResult
' Output:
' 40 -10
' 0

See Also