---
title: "BitmapStatisticsProvider..::.GetSumHistogram Method (Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_BitmapStatisticsProvider_GetSumHistogram_1_ea7b1ae4.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/)

# BitmapStatisticsProvider.GetSumHistogram Method (Boolean)
 
Calculates and returns a histogram built from the sum of each channel luminosities of the pixel. You can include or exclude alpha channel from this sum.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function GetSumHistogram ( _useAlpha As Boolean _
) As Histogram
```
 
```csharp
public Histogram GetSumHistogram(bool useAlpha
)
```
 
### Parameters
 
 - useAlpha
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Flag that specify whether to include alpha channel into the histogram calculation.
 
### Return Value
 [Histogram](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Histogram.htm.md) class instance that contains sum histogram of this bitmap.
 
## Remarks
  
This histogram type is used in Adobe® Photoshop®.
 
## Examples
  
```
Dim histogram As Aurigma.GraphicsMill.Histogram = _
 bitmap.Statistics.GetSumHistogram(False)

For i As Integer = 0 To histogram.Length - 1
    Console.WriteLine(i & ": " & histogram(i))
Next
```
 
```csharp
Aurigma.GraphicsMill.Histogram histogram =
    bitmap.Statistics.GetSumHistogram(false);

for (int i = 0; i < histogram.Length; i++)
{
    Console.WriteLine(i + ": " + histogram[i]);
}
```
   
## See Also

### Reference

- [BitmapStatisticsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_BitmapStatisticsProvider.htm.md)
- [GetSumHistogram Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_BitmapStatisticsProvider_GetSumHistogram.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
