---
title: "Levels Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Levels.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/)

# Levels Class
 
This class enables you to apply levels correction.
 
**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 Levels _Inherits PerChannelBitmapTransform
```
 
```csharp
public sealed class Levels : PerChannelBitmapTransform
```
 
## Remarks
  
Using this class you can apply a tone correction similar to Adobe® Photoshop® Levels effect. You specify [Shadows](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Shadows.htm.md), [Midtones](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Midtones.htm.md) and [Highlights](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Highlights.htm.md), as well as [MinimumLevel](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_MinimumLevel.htm.md) and [MaximumLevel](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_MaximumLevel.htm.md) modifiers. These values works in the same way as appropriate sliders in Adobe® Photoshop®.
 
It also can be applied automatically. To do it, set [Auto](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Auto.htm.md) property to **true**.
 
## 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.PerChannelBitmapTransform](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_PerChannelBitmapTransform.htm.md)
                        - Aurigma.GraphicsMill.Transforms.Levels
 
## 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 |
| --- | --- |
| **Format8bppGrayScale** | 8 bits per pixel. Grayscale. 8 bits are used for luminosity level. |
| **Format16bppGrayScale** | 16 bits per pixel. Grayscale. All 16 bits are used for luminosity level (extended pixel format). |
| **Format16bppAGrayScale** | 16 bits per pixel. Grayscale with alpha channel. 8 bits are used for alpha channel and other 8 bits are used for luminosity level. |
| **Format32bppAGrayScale** | 32 bits per pixel. Grayscale with alpha channel. 16 bits are used for alpha channel and other 16 bits are used for luminosity level (extended pixel format). |
| **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

- [Levels Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_Transforms_Levels.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
