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

ColorAdjustmentProvider.Brightness Method (Single)

Adjusts image brightness.

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

Syntax

Visual Basic
Public Sub Brightness ( _
	amount As Single _
)
C#
public void Brightness(
	float amount
)

Parameters

amount

Type: System.Single

Value in range [-1, 1] that specifies brightness modifier.

Remarks

You can also use Brightness class to apply this correction.

Parameter amount is normalized to 1. Depending on pixel format it is scaled to 255 or 65355 inside of the method.

Examples

Visual Basic
bitmap.ColorAdjustment.Brightness(0.2)
C#
bitmap.ColorAdjustment.Brightness(0.2f);

See Also

Reference