**Inheritance:**
java.lang.Object
```
public final class ColorMap
```

Defines a map for converting colors. Several methods of the [ImageAttributes](../../com.aspose.imaging/imageattributes) class adjust image colors by using a color-remap table, which is an array of `com.aspose.imaging.ColorMap` structures. Not inheritable.
## Constructors

| Constructor | Description |
| --- | --- |
| [ColorMap()](#ColorMap--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getOldColor()](#getOldColor--) | Gets the existing `com.aspose.imaging.Color` structure to be converted. |
| [setOldColor(Color value)](#setOldColor-com.aspose.imaging.Color-) | Sets the existing `com.aspose.imaging.Color` structure to be converted. |
| [getNewColor()](#getNewColor--) | Gets the new `com.aspose.imaging.Color` structure to which to convert. |
| [setNewColor(Color value)](#setNewColor-com.aspose.imaging.Color-) | Sets the new `com.aspose.imaging.Color` structure to which to convert. |
### ColorMap() {#ColorMap--}
```
public ColorMap()
```


### getOldColor() {#getOldColor--}
```
public Color getOldColor()
```


Gets the existing `com.aspose.imaging.Color` structure to be converted.

**Returns:**
[Color](../../com.aspose.imaging/color) - The existing `com.aspose.imaging.Color` structure to be converted.
### setOldColor(Color value) {#setOldColor-com.aspose.imaging.Color-}
```
public void setOldColor(Color value)
```


Sets the existing `com.aspose.imaging.Color` structure to be converted.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color](../../com.aspose.imaging/color) | The existing `com.aspose.imaging.Color` structure to be converted. |

### getNewColor() {#getNewColor--}
```
public Color getNewColor()
```


Gets the new `com.aspose.imaging.Color` structure to which to convert.

**Returns:**
[Color](../../com.aspose.imaging/color) - The new `com.aspose.imaging.Color` structure to which to convert.
### setNewColor(Color value) {#setNewColor-com.aspose.imaging.Color-}
```
public void setNewColor(Color value)
```


Sets the new `com.aspose.imaging.Color` structure to which to convert.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color](../../com.aspose.imaging/color) | The new `com.aspose.imaging.Color` structure to which to convert. |

