---
title: "Class ColorMap"
url: "https://reference.aspose.com/drawing/net/aspose.drawing.imaging/colormap/"
product: "Aspose.Drawing for .NET API Reference"
description: "Aspose.Drawing.Imaging.ColorMap class. Defines a map for converting colors. Several methods of the ImageAttributes class adjust image colors by using a colorremap table which is an array of ColorMap structures. Not inheritable"
---

## ColorMap class

Defines a map for converting colors. Several methods of the ImageAttributes class adjust image colors by using a color-remap table, which is an array of ColorMap structures. Not inheritable.

```csharp
public sealed class ColorMap
```

## Constructors

| Name | Description |
| --- | --- |
| [ColorMap](colormap/)() | Initializes a new instance of the ColorMap class. |

## Properties

| Name | Description |
| --- | --- |
| [NewColor](../../aspose.drawing.imaging/colormap/newcolor/) { get; set; } | Gets or sets the new Color structure to which to convert. |
| [OldColor](../../aspose.drawing.imaging/colormap/oldcolor/) { get; set; } | Gets or sets the existing Color structure to be converted. |

### See Also

* namespace [Aspose.Drawing.Imaging](../../aspose.drawing.imaging/)
* assembly [Aspose.Drawing.Common](../../)


