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

# Interface IColorMatchingService

> `System.Int32`

###### **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 interface IColorMatchingService
```

## Methods

### FindNearestColorIndex

```csharp
int FindNearestColorIndex(ColorPalette gmPalette, RgbColor targetColor)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.ColorPalette` | *gmPalette* |  |
| `Aurigma.GraphicsMill.RgbColor` | *targetColor* |  |

##### Returns
