---
title: "AdjustHsl Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_AdjustHsl.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# AdjustHsl Class
 
This class enables you to perform adjusting image in HSL color space.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public NotInheritable Class AdjustHsl _Inherits MaskedBitmapTransform
```
 
```csharp
public sealed class AdjustHsl : MaskedBitmapTransform
```
 
## Remarks
  
To use this transform, you should supply values for [Hue](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_AdjustHsl_Hue.htm.md), [Saturation](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_AdjustHsl_Saturation.htm.md), and [Lightness](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_AdjustHsl_Lightness.htm.md) which will be added to appropriate components in HSL color space to each pixel.
 
## Examples
  
```
'... 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)
```
 
```csharp
//... 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
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [Aurigma.GraphicsMill.SyncHandler](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_SyncHandler.htm.md)
        - [Aurigma.GraphicsMill.UnitConverterHandler](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_UnitConverterHandler.htm.md)
            - [Aurigma.GraphicsMill.Transforms.BitmapTransform](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_BitmapTransform.htm.md)
                - [Aurigma.GraphicsMill.Transforms.MaskedBitmapTransform](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_MaskedBitmapTransform.htm.md)
                    - Aurigma.GraphicsMill.Transforms.AdjustHsl
 
## 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 Name | Description |
| --- | --- |
| **Format24bppRgb** | 24 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. |
| **Format32bppRgb** | 32 bits per pixel. RGB. 8 bits each are used for the red, green, and blue components. The rest 8 bits are unused. |
| **Format32bppArgb** | 32 bits per pixel. RGB with alpha channel. 8 bits each are used for the alpha, red, green, and blue components. |
| **Format48bppRgb** | 48 bits per pixel. RGB. 16 bits each are used for the red, green, and blue components (extended pixel format). |
| **Format64bppArgb** | 64 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

- [AdjustHsl Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Transforms_AdjustHsl.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
