This documentation is for the old version. Go to the latest Graphics Mill docs

BrightnessContrast Constructor (Single, Single)

Creates new BrightnessContrast class instance. Here you can specify brigthness and contrast modifiers.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub New ( _
	brightnessAmount As Single, _
	contrastAmount As Single _
)
C#
public BrightnessContrast(
	float brightnessAmount,
	float contrastAmount
)

Parameters

brightnessAmount

Type: System.Single

Brightness modifier value varying in range [-1, 1]. You can change this value later through property BrightnessAmount.
contrastAmount

Type: System.Single

Contrast modifier value varying in range [-1, 1]. Minimum value (-1) will produce absolutely gray image, neutral value (0) does no effect, maximum value (1) makes the image extremely posterized. You can change this value later through property ContrastAmount.

See Also

Reference