---
title: "Histogram.BuildSum Method (Bitmap, Int32)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Histogram_BuildSum_2_95bfa618.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# Histogram.BuildSum Method (Bitmap, Int32)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Builds a sum histogram for the specified 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 static Histogram BuildSum(Bitmap bitmap,int channel
)
```
 
### Parameters
 
 - bitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md)
A [Bitmap](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Bitmap.htm.md) to build the histogram for.

 - channel
     - Type: System.Int32
The index of a channel to build the histogram for.
 
### Return Value
A [Histogram](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md) based on the value of the channel at specified index.
   
## See Also

### Reference

- [Histogram Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md)
- [BuildSum Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Histogram_BuildSum.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
