ColorBlend
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() | Initializes a new instance of the ColorBlend class. |
| ColorBlend(int count) | Initializes a new instance of the ColorBlend class with the specified number of colors and positions. |
Methods
| Method | Description |
|---|---|
| getColors() | Gets an array of colors that represents the colors to use at corresponding positions along a gradient. |
| setColors(Color[] value) | Sets an array of colors that represents the colors to use at corresponding positions along a gradient. |
| getPositions() | Gets the positions along a gradient line. |
| setPositions(float[] value) | Sets the positions along a gradient line. |
ColorBlend()
public ColorBlend()
Initializes a new instance of the ColorBlend class.
ColorBlend(int count)
public ColorBlend(int count)
Initializes a new instance of the 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. |
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)
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[] | an array of colors that represents the colors to use at corresponding positions along a gradient. |
getPositions()
public float[] getPositions()
Gets the positions along a gradient line.
Returns: float[] - the positions along a gradient line.
setPositions(float[] value)
public void setPositions(float[] value)
Sets the positions along a gradient line.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float[] | the positions along a gradient line. |