public final class Blend extends Object
Defines a blend pattern. This class cannot be inherited.
Constructor and Description |
---|
Blend()
Initializes a new instance of the
Blend class. |
Blend(int count)
Initializes a new instance of the
Blend class with the specified number of factors and positions. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests whether the specified object is a
Blend class and is equivalent to this Blend class. |
float[] |
getFactors()
Gets or sets the array of blend factors for the gradient.
|
float[] |
getPositions()
Gets or sets the array of blend positions for the gradient.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setFactors(float[] value)
Gets or sets the array of blend factors for the gradient.
|
void |
setPositions(float[] value)
Gets or sets the array of blend positions for the gradient.
|
public Blend()
Initializes a new instance of the Blend
class. The number of elements in the factor and blend arrays will be equal to 1.
public Blend(int count)
Initializes a new instance of the Blend
class with the specified number of factors and positions.
count
- The number of elements in the factor and position arrays.public float[] getFactors()
Gets or sets the array of blend factors for the gradient.
Value: The array of blend factors that specify the percentages of the starting color and the ending color to be used at the corresponding position.public final void setFactors(float[] value)
Gets or sets the array of blend factors for the gradient.
Value: The array of blend factors that specify the percentages of the starting color and the ending color to be used at the corresponding position.public final float[] getPositions()
Gets or sets the array of blend positions for the gradient.
Value: The array of blend positions that specify the percentages of distance along the gradient line.public final void setPositions(float[] value)
Gets or sets the array of blend positions for the gradient.
Value: The array of blend positions that specify the percentages of distance along the gradient line.public boolean equals(Object obj)
Tests whether the specified object is a Blend
class and is equivalent to this Blend
class.
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.