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
com.aspose.imaging.ColorBlend class. |
ColorBlend(int count)
Initializes a new instance of the
com.aspose.imaging.ColorBlend class with the specified number of colors and positions. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests whether the specified object is a
com.aspose.imaging.ColorBlend class and is equivalent to this com.aspose.imaging.ColorBlend class. |
Color[] |
getColors()
Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
|
float[] |
getPositions()
Gets or sets the positions along a gradient line.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setColors(Color[] value) |
void |
setPositions(float[] value) |
public ColorBlend()
Initializes a new instance of the com.aspose.imaging.ColorBlend
class.
public ColorBlend(int count)
Initializes a new instance of the com.aspose.imaging.ColorBlend
class with the specified number of colors and positions.
count
- The number of colors and positions in this com.aspose.imaging.ColorBlend
.public Color[] getColors()
Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
com.aspose.imaging.Color
structures that represents the colors to use at corresponding positions along a gradient.public void setColors(Color[] value)
public float[] getPositions()
Gets or sets the positions along a gradient line.
public void setPositions(float[] value)
public boolean equals(Object obj)
Tests whether the specified object is a com.aspose.imaging.ColorBlend
class and is equivalent to this com.aspose.imaging.ColorBlend
class.