---
title: "Histogram.Merge Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Histogram_Merge_2_a2cf8d3d.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.Merge Method 

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Merges two histograms by summation the corresponding entries.
 
**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 Merge(Histogram h1,Histogram h2
)
```
 
### Parameters
 
 - h1
     - Type: [Aurigma.GraphicsMill.Histogram](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md)
The first [Histogram](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md) to merge.

 - h2
     - Type: [Aurigma.GraphicsMill.Histogram](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md)
The second [Histogram](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md) to merge.
 
### Return Value
A new [Histogram](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md) containing the result of merging.
 
## Remarks
 The [Length](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Histogram_Length.htm.md) of input histograms must be the same; otherwise the exception is throw.
   
## See Also

### Reference

- [Histogram Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Histogram.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
