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

AdjustHsl Class

This class enables you to perform adjusting image in HSL color space.

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

Syntax

Visual Basic
Public NotInheritable Class AdjustHsl _
	Inherits MaskedBitmapTransform
C#
public sealed class AdjustHsl : MaskedBitmapTransform

Remarks

To use this transform, you should supply values for Hue, Saturation, and Lightness which will be added to appropriate components in HSL color space to each pixel.

Examples

Visual Basic
'... bitmap instantiation is omitted for brevity

Dim hsl As New Aurigma.GraphicsMill.Transforms.AdjustHsl
hsl.Hue = 0.1F
hsl.Saturation = -0.2F
hsl.Lightness = 0.1F
hsl.ApplyTransform(bitmap)
C#
//... bitmap instantiation is omitted for brevity

Aurigma.GraphicsMill.Transforms.AdjustHsl hsl = 
    new Aurigma.GraphicsMill.Transforms.AdjustHsl();
hsl.Hue = 0.1F;
hsl.Saturation = -0.2F;
hsl.Lightness = 0.1F;
hsl.ApplyTransform(bitmap);

Inheritance Hierarchy

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

Supported Pixel Formats

Member NameDescription
Format24bppRgb24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components.
Format32bppRgb32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused.
Format32bppArgb32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components.
Format48bppRgb48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format).
Format64bppArgb64 bits per pixel. RGB with alpha channel. 16 bits each are used for the alpha, red, green, and blue components (extended pixel format).

See Also

Reference