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

ColorAdjustmentProvider.Levels Method (Boolean[], Single, Single, Single, Single, Single, HistogramMode)

Applies tone levels correction (the same as Adobe® Photoshop® Levels effect).

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

Syntax

Visual Basic
Public Sub Levels ( _
	channels As Boolean(), _
	minimumLevel As Single, _
	maximumLevel As Single, _
	shadows As Single, _
	midtones As Single, _
	highlights As Single, _
	histogramMode As HistogramMode _
)
C#
public void Levels(
	bool[] channels,
	float minimumLevel,
	float maximumLevel,
	float shadows,
	float midtones,
	float highlights,
	HistogramMode histogramMode
)

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.
minimumLevel

Type: System.Single

Value in range [0, 1] that specifies minimum output level value.
maximumLevel

Type: System.Single

Value in range [0, 1] that specifies maximum output level value.
shadows

Type: System.Single

Value in range [0, 1] that specifies minimum input shadows level.
midtones

Type: System.Single

Value in range [0.1, 10] that specifies input midtones level.
highlights

Type: System.Single

Value in range [0, 1] that specifies maximum input highlights level.
histogramMode

Type: Aurigma.GraphicsMill.HistogramMode

HistogramMode value that specifies how to build histogram.

Remarks

All parameters that specify tone range (minimumLevel, maximumLevel, shadows, and histogram) are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method.

See Also

Reference