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

ColorAdjustmentProvider.BrightnessContrast Method (Single, Single)

Adjusts image brightness and contrast in single pass.

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

Syntax

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

Parameters

brightnessAmount

Type: System.Single

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

Type: System.Single

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

Remarks

You can also use BrightnessContrast class to apply this correction.

Both brightnessAmount and contrastAmount are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method.

Examples

Visual Basic
bitmap.ColorAdjustment.BrightnessContrast(0.2F, -0.1F)
C#
bitmap.ColorAdjustment.BrightnessContrast(0.2F, -0.1F);

See Also

Reference