
**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  com.aspose.psd.ColorBlend  class. |
| [ColorBlend(int count)](#ColorBlend-int-) | Initializes a new instance of the  com.aspose.psd.ColorBlend  class with the specified number of colors and positions. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object obj)](#equals-java.lang.Object-) | Tests whether the specified object is a  com.aspose.psd.ColorBlend  class and is equivalent to this  com.aspose.psd.ColorBlend  class. |
| [getClass()](#getClass--) |  |
| [getColors()](#getColors--) | Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient. |
| [getPositions()](#getPositions--) | Gets or sets the positions along a gradient line. |
| [hashCode()](#hashCode--) | Returns a hash code for this instance. |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setColors(Color[] value)](#setColors-com.aspose.psd.Color---) |  |
| [setPositions(float[] value)](#setPositions-float---) |  |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### ColorBlend() {#ColorBlend--}
```
public ColorBlend()
```


Initializes a new instance of the  com.aspose.psd.ColorBlend  class.

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


Initializes a new instance of the  com.aspose.psd.ColorBlend  class with the specified number of colors and positions.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| count | int | The number of colors and positions in this  com.aspose.psd.ColorBlend . |

### equals(Object obj) {#equals-java.lang.Object-}
```
public boolean equals(Object obj)
```


Tests whether the specified object is a  com.aspose.psd.ColorBlend  class and is equivalent to this  com.aspose.psd.ColorBlend  class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| obj | java.lang.Object | The object to test. |

**Returns:**
boolean - True if  obj  is a  com.aspose.psd.ColorBlend  class equivalent to this  com.aspose.psd.ColorBlend  class; otherwise, false.
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getColors() {#getColors--}
```
public Color[] getColors()
```


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

**Returns:**
com.aspose.psd.Color[] - An array of  com.aspose.psd.Color  structures that represents the colors to use at corresponding positions along a gradient.
### getPositions() {#getPositions--}
```
public float[] getPositions()
```


Gets or sets the positions along a gradient line.

**Returns:**
float[] - An array of values that specify percentages of distance along the gradient line.
### hashCode() {#hashCode--}
```
public int hashCode()
```


Returns a hash code for this instance.

**Returns:**
int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setColors(Color[] value) {#setColors-com.aspose.psd.Color---}
```
public void setColors(Color[] value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color\[\]](../../com.aspose.psd/color) |  |

### setPositions(float[] value) {#setPositions-float---}
```
public void setPositions(float[] value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | float[] |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

