|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.ColorBlend
public final class ColorBlend
Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
static boolean |
op_Equality(ColorBlend colorBlend1,
ColorBlend colorBlend2)
Tests whether two specified ColorBlend classes are different. |
static boolean |
op_Inequality(ColorBlend colorBlend1,
ColorBlend colorBlend2)
Tests whether two specified ColorBlend classes are equivalent. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
public Color[] getColors()
Gets an array of colors that represents the colors to use at corresponding positions along a gradient.
Color
structures that represents the colors to use at corresponding positions along a gradient.public float[] getPositions()
Gets the positions along a gradient line.
public static boolean op_Equality(ColorBlend colorBlend1, ColorBlend colorBlend2)
Tests whether two specified ColorBlend
classes are different.
colorBlend1
- The ColorBlend
that is to the left of the inequality operator.colorBlend2
- The ColorBlend
that is to the right of the inequality operator.
ColorBlend
classes are different; otherwise, false.public static boolean op_Inequality(ColorBlend colorBlend1, ColorBlend colorBlend2)
Tests whether two specified ColorBlend
classes are equivalent.
colorBlend1
- The ColorBlend
that is to the left of the equality operator.colorBlend2
- The ColorBlend
that is to the right of the equality operator.
ColorBlend
classes are equal; otherwise, false.public void setColors(Color[] value)
Sets an array of colors that represents the colors to use at corresponding positions along a gradient.
public void setPositions(float[] value)
Sets the positions along a gradient line.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |