Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

ColorAdjustmentProvider.Contrast Method (Boolean[], Single)

Adjusts image contrast.

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

Syntax

Visual Basic
Public Sub Contrast ( _
	channels As Boolean(), _
	amount As Single _
)
C#
public void Contrast(
	bool[] channels,
	float amount
)

Parameters

channels

Type: System.Boolean []

Array of flags specifying what channels to apply effect at. If array item is true, transform will be applied at channel with appropriate index. Otherwise this channel is skipped.
amount

Type: System.Single

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

Remarks

You can also use Contrast 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.

See Also

Reference