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

ColorAdjustmentProvider.AdjustHsl Method

Adjusts hue, saturation, and lightness of the image.

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

Syntax

Visual Basic
Public Sub AdjustHsl ( _
	hue As Single, _
	saturation As Single, _
	lightness As Single _
)
C#
public void AdjustHsl(
	float hue,
	float saturation,
	float lightness
)

Parameters

hue

Type: System.Single

Hue modifier. Should be in range [-1, 1].
saturation

Type: System.Single

Saturation modifier. Should be in range [-1, 1].
lightness

Type: System.Single

Lightness modifier. Should be in range [-1, 1].

Remarks

You can also use AdjustHsl class to apply this correction.

Such parameters as saturation and lightness are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method. Hue is normalized to 360. In other words, hue*360 means a degree on the color wheel.

Examples

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

See Also

Reference