public final class ColorBlend extends Object
Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
| Constructor and 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. |
| Modifier and Type | Method and Description |
|---|---|
Color[] |
getColors()
Gets an array of colors that represents the colors to use at corresponding positions along a gradient.
|
float[] |
getPositions()
Gets the positions along a gradient line.
|
void |
setColors(Color[] value)
Sets an array of colors that represents the colors to use at corresponding positions along a gradient.
|
void |
setPositions(float[] value)
Sets the positions along a gradient line.
|
public ColorBlend()
Initializes a new instance of the ColorBlend class.
public ColorBlend(int count)
Initializes a new instance of the ColorBlend class with the specified number of colors and positions.
count - The number of colors and positions in this ColorBlend.public Color[] getColors()
Gets an array of colors that represents the colors to use at corresponding positions along a gradient.
public void setColors(Color[] value)
Sets an array of colors that represents the colors to use at corresponding positions along a gradient.
value - an array of colors that represents the colors to use at corresponding positions along a gradient.public float[] getPositions()
Gets the positions along a gradient line.
public void setPositions(float[] value)
Sets the positions along a gradient line.
value - the positions along a gradient line.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.