ColorAdjustmentProvider.Levels Method

Applies levels correction to the bitmap.

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

Syntax

C#
public void Levels(
	float minimumLevel,
	float maximumLevel,
	float shadows,
	float midtones,
	float highlights,
	HistogramMode histogramMode
)

Parameters

minimumLevel

Type: System..Single

The minimum output level in range [0, 1].
maximumLevel

Type: System..Single

The maximum output level in range [0, 1].
shadows

Type: System..Single

The shadows level modifier in range [0, 1].
midtones

Type: System..Single

The midtones modifier in range [0.1, 10].
highlights

Type: System..Single

The highlights level modifier in range [0, 1].
histogramMode

Type: Aurigma.GraphicsMill..HistogramMode

A HistogramMode value that specifies how to build histogram during levels adjusting.

Remarks

Using this method you can apply a tone correction similar to Adobe® Photoshop® Levels effect. Input paramaters work in the same way as appropriate sliders in Adobe® Photoshop®.

See Also

Reference