---
title: "ColorAdjustmentProvider.Levels Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_Levels_6_2fbf0260.htm
product: "Graphics Mill"
---

# ColorAdjustmentProvider.Levels Method 
 
Applies levels correction to the bitmap.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void Levels(float minimumLevel,float maximumLevel,float shadows,float midtones,float highlights,HistogramMode histogramMode
)
```
 
### Parameters
 
 - minimumLevel
     - Type: System.Single
The minimum output level in range [0, 1].

 - maximumLevel
     - Type: System.Single
The maximum output level in range [0, 1].

 - shadows
     - Type: System.Single
The shadows level modifier in range [0, 1].

 - midtones
     - Type: System.Single
The midtones modifier in range [0.1, 10].

 - highlights
     - Type: System.Single
The highlights level modifier in range [0, 1].

 - histogramMode
     - Type: [Aurigma.GraphicsMill.HistogramMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_HistogramMode.htm.md)
A [HistogramMode](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_HistogramMode.htm.md) value that specifies how to build histogram during levels adjusting.
 
## Remarks
  
Using this method you can apply a tone correction similar to Adobe® Photoshop® Levels effect. Input paramaters work in the same way as appropriate sliders in Adobe® Photoshop®.
   
## See Also

### Reference

- [ColorAdjustmentProvider Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ColorAdjustmentProvider.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
