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

# Class ColorPreviewService

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

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

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

```csharp title="Syntax"
public class ColorPreviewService : IColorPreviewService
```

## Implements

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

## 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

### ColorPreviewService

```csharp
public ColorPreviewService(IGmColorConverter gmColorConverter, IColorManagement colorManagement, IMemoryCachingService memoryCachingService)
```

## Methods

### GetPreview

```csharp
public RgbColor GetPreview(Color color, IRenderingColorSettings colorSettings, IColorProfilesProvider profilesProvider)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Color.Color](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/Color.md) | *color* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |
| [Aurigma.DesignAtoms.ColorManagement.IColorProfilesProvider](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IColorProfilesProvider.md) | *profilesProvider* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Color.RgbColor](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Color/RgbColor.md)

### GetPreview

```csharp
public RgbColor GetPreview(Color color, IRenderingColorSettings colorSettings)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `Aurigma.GraphicsMill.Color` | *color* |  |
| [Aurigma.DesignAtoms.ColorManagement.IRenderingColorSettings](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.ColorManagement/IRenderingColorSettings.md) | *colorSettings* |  |

##### Returns

`Aurigma.GraphicsMill.RgbColor`
