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.
|
static boolean |
op_Equality(ColorBlend colorBlend1,
ColorBlend colorBlend2)
Tests whether two specified
com.aspose.imaging.ColorBlend classes are different. |
static boolean |
op_Inequality(ColorBlend colorBlend1,
ColorBlend colorBlend2)
Tests whether two specified
com.aspose.imaging.ColorBlend classes are equivalent. |
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 static boolean op_Equality(ColorBlend colorBlend1, ColorBlend colorBlend2)
Tests whether two specified com.aspose.imaging.ColorBlend
classes are different.
colorBlend1
- The com.aspose.imaging.ColorBlend
that is to the left of the inequality operator.colorBlend2
- The com.aspose.imaging.ColorBlend
that is to the right of the inequality operator.com.aspose.imaging.ColorBlend
classes are different; otherwise, false.public static boolean op_Inequality(ColorBlend colorBlend1, ColorBlend colorBlend2)
Tests whether two specified com.aspose.imaging.ColorBlend
classes are equivalent.
colorBlend1
- The com.aspose.imaging.ColorBlend
that is to the left of the equality operator.colorBlend2
- The com.aspose.imaging.ColorBlend
that is to the right of the equality operator.com.aspose.imaging.ColorBlend
classes are equal; otherwise, false.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.
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.