---
title: "Histogram.BuildSum Method (Pipeline, Int32)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Histogram_BuildSum_2_1a4d1d2f.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 (Pipeline, Int32)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Builds a sum histogram using the pipeline approach.
 
**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(Pipeline pipeline,int channel
)
```
 
### Parameters
 
 - pipeline
     - Type: [Aurigma.GraphicsMill.Pipeline](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Pipeline.htm.md)
A [Pipeline](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Pipeline.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)
