---
title: "Levels Constructor (Single, Single, Single, Single, Single, HistogramMode)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Levels_ctor_6_1f5e655a.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 Constructor (Single, Single, Single, Single, Single, HistogramMode)
 
Create and initializes new [Levels](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Levels.htm.md) class instance. Here you can specify all the levels adjustment settings. Besides of this, you can initialize [HistogramMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_HistogramMode.htm.md) property.
 
**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 Sub New ( _minimumLevel As Single, _maximumLevel As Single, _shadows As Single, _midtones As Single, _highlights As Single, _histogramMode As HistogramMode _
)
```
 
```csharp
public Levels(float minimumLevel,float maximumLevel,float shadows,float midtones,float highlights,HistogramMode histogramMode
)
```
 
### Parameters
 
 - minimumLevel
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [0, 1] that specifies minimum output level. You can change it later using [MinimumLevel](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_MinimumLevel.htm.md) property.

 - maximumLevel
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [0, 1] that specifies maximum output level. You can change it later using [MaximumLevel](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_MaximumLevel.htm.md) property.

 - shadows
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [0, 1] that contains shadows level modifier. You can change it later using [Shadows](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Shadows.htm.md) property.

 - midtones
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [0.1, 10] that contains midtones modifier. You can change it later using [Midtones](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Midtones.htm.md) property.

 - highlights
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [0, 1] that contains highlights level modifier. You can change it later using [Highlights](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_Highlights.htm.md) property.

 - histogramMode
     - Type: [Aurigma.GraphicsMill.HistogramMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_HistogramMode.htm.md)
 [HistogramMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_HistogramMode.htm.md) value specifying how to build the histogram. You can change it later using [HistogramMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Levels_HistogramMode.htm.md) property.
   
## See Also

### Reference

- [Levels Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Levels.htm.md)
- [Levels Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Levels_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
