---
title: "Levels Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Levels.htm
product: "Graphics Mill"
---

# Levels Class
 
Applies levels correction to an image.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class Levels : MaskTransform
```
 
## Remarks
  
Using this class you can apply a tone correction similar to Adobe® Photoshop® Levels effect. You specify [Shadows](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Levels_Shadows.htm.md), [Midtones](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Levels_Midtones.htm.md) and [Highlights](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Levels_Highlights.htm.md), as well as [MinimumLevel](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Levels_MinimumLevel.htm.md) and [MaximumLevel](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Levels_MaximumLevel.htm.md) modifiers. These values work 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/gm/P_Aurigma_GraphicsMill_Transforms_Levels_Auto.htm.md) property to `true`.
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - [Aurigma.GraphicsMill.Transforms.Transform](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Transform.htm.md)
            - [Aurigma.GraphicsMill.Transforms.MaskTransform](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_MaskTransform.htm.md)
                - Aurigma.GraphicsMill.Transforms.Levels
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [Levels Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Transforms_Levels.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
