---
title: "ColorAdjustmentProvider..::.HistogramEqualize Method (array&lt;Boolean&gt;[]()[], HistogramMode)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_HistogramEqualize_2_dd234632.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/)

# ColorAdjustmentProvider.HistogramEqualize Method (Boolean[], HistogramMode)
 
Applies histogram equalization to the bitmap. Histogram is taken from the bitmap automatically.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub HistogramEqualize ( _channels As Boolean(), _histogramMode As HistogramMode _
)
```
 
```csharp
public void HistogramEqualize(bool[] channels,HistogramMode histogramMode
)
```
 
### Parameters
 
 - channels
     - Type:  [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) []
Array of flags specifying what channels to apply effect at. If array item is **true**, transform will be applied at channel with appropriate index. Otherwise this channel is skipped.

 - 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) enumeration member that specifies what histogram calculation algorithm to use.
 
## Remarks
 You can also use [HistogramEqualize](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_HistogramEqualize.htm.md) class to apply this correction.
   
## See Also

### Reference

- [ColorAdjustmentProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorAdjustmentProvider.htm.md)
- [HistogramEqualize Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorAdjustmentProvider_HistogramEqualize.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
