---
title: "Histogram Constructor (BitmapData)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Histogram_ctor_1_f7d58739.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/)

# Histogram Constructor (BitmapData)
 
Creates new [Histogram](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Histogram.htm.md) instance and builds the histogram for specified bitmap data. Histogram is based on pixels luminosity.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _bitmapData As BitmapData _
)
```
 
```csharp
public Histogram(BitmapData bitmapData
)
```
 
### Parameters
 
 - bitmapData
     - Type: [Aurigma.GraphicsMill.BitmapData](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_BitmapData.htm.md)
 [BitmapData](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_BitmapData.htm.md) class instance to build the histogram for.
   
## See Also

### Reference

- [Histogram Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Histogram.htm.md)
- [Histogram Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Histogram_ctor.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
