---
title: "Class ColorAverager | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ImageProcessing.Services/ColorAverager/"
---

# Class ColorAverager

> **Inheritance:** `System.Object` -> ColorAverager

###### **Namespace**: [Aurigma.DesignAtoms.ImageProcessing.Services](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ImageProcessing.Services.md)

###### **Assembly**: Aurigma.DesignAtoms.ImageProcessing.dll

```csharp title="Syntax"
public class ColorAverager
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### ColorAverager

```csharp
public ColorAverager()
```

## Methods

### GetAverageColor

```csharp
public Color GetAverageColor(List<Color> colors, Dictionary<Color, int> colorCounts, ColorSpace colorSpace)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Collections.Generic.List<Aurigma.GraphicsMill.Color>` | *colors* |  |
| `System.Collections.Generic.Dictionary<Aurigma.GraphicsMill.Color,System.Int32>` | *colorCounts* |  |
| `Aurigma.GraphicsMill.ColorSpace` | *colorSpace* |  |

##### Returns

`Aurigma.GraphicsMill.Color`
