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

Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
## Constructors

| Constructor | Description |
| --- | --- |
| [ColorBlend()](#ColorBlend--) | Initializes a new instance of the [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) class. |
| [ColorBlend(int count)](#ColorBlend-int-) | Initializes a new instance of the [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) class with the specified number of colors and positions. |
## Methods

| Method | Description |
| --- | --- |
| [getColors()](#getColors--) | Gets an array of colors that represents the colors to use at corresponding positions along a gradient. |
| [setColors(Color[] value)](#setColors-com.aspose.drawing.Color---) | Sets an array of colors that represents the colors to use at corresponding positions along a gradient. |
| [getPositions()](#getPositions--) | Gets the positions along a gradient line. |
| [setPositions(float[] value)](#setPositions-float---) | Sets the positions along a gradient line. |
### ColorBlend() {#ColorBlend--}
```
public ColorBlend()
```


Initializes a new instance of the [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) class.

### ColorBlend(int count) {#ColorBlend-int-}
```
public ColorBlend(int count)
```


Initializes a new instance of the [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend) class with the specified number of colors and positions.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| count | int | The number of colors and positions in this [ColorBlend](../../com.aspose.drawing.drawing2d/colorblend). |

### getColors() {#getColors--}
```
public Color[] getColors()
```


Gets an array of colors that represents the colors to use at corresponding positions along a gradient.

**Returns:**
com.aspose.drawing.Color[] - an array of colors that represents the colors to use at corresponding positions along a gradient.
### setColors(Color[] value) {#setColors-com.aspose.drawing.Color---}
```
public void setColors(Color[] value)
```


Sets an array of colors that represents the colors to use at corresponding positions along a gradient.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color\[\]](../../com.aspose.drawing/color) | an array of colors that represents the colors to use at corresponding positions along a gradient. |

### getPositions() {#getPositions--}
```
public float[] getPositions()
```


Gets the positions along a gradient line.

**Returns:**
float[] - the positions along a gradient line.
### setPositions(float[] value) {#setPositions-float---}
```
public void setPositions(float[] value)
```


Sets the positions along a gradient line.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float[] | the positions along a gradient line. |

