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 |
---|---|
boolean |
equals(Object obj)
Tests whether the specified object is a
ColorBlend class and is equivalent to this 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)
Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
|
void |
setPositions(float[] value)
Gets or 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 final Color[] getColors()
Gets or sets 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 final void setColors(Color[] value)
Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
value
- An array of Color
structures that represents the colors to use at corresponding positions along a gradient.public final float[] getPositions()
Gets or sets the positions along a gradient line.
public final void setPositions(float[] value)
Gets or sets the positions along a gradient line.
value
- An array of values that specify percentages of distance along the gradient line.public boolean equals(Object obj)
Tests whether the specified object is a ColorBlend
class and is equivalent to this ColorBlend
class.
equals
in class Object
obj
- The object to test.obj
is a ColorBlend
class equivalent to this ColorBlend
class; otherwise, false.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.