---
title: "ColorAdjustmentProvider..::.HistogramEqualize Method (array&lt;Boolean&gt;[]()[], Histogram)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_HistogramEqualize_2_d666e04d.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[], Histogram)
 
Applies histogram equalization to the bitmap. Histogram is retrieved to this method.
 
**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(), _histogram As Histogram _
)
```
 
```csharp
public void HistogramEqualize(bool[] channels,Histogram histogram
)
```
 
### 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.

 - histogram
     - Type: [Aurigma.GraphicsMill.Histogram](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Histogram.htm.md)
 [Histogram](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Histogram.htm.md) class instance containing a histogram to equalize. If you want to get histogram from the bitmap automatically, you should use [overloaded version without this parameter](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_HistogramEqualize.htm.md).
 
## 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)
