Blend
Contents
[
Hide
]Inheritance: java.lang.Object
public final class Blend
Defines a blend pattern for a LinearGradientBrush object. This class cannot be inherited.
Constructors
Constructor | 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. |
Methods
Method | Description |
---|---|
getFactors() | Gets an array of blend factors for the gradient. |
setFactors(float[] value) | Sets an array of blend factors for the gradient. |
getPositions() | Gets an array of blend positions for the gradient. |
setPositions(float[] value) | Sets an array of blend positions for the gradient. |
Blend()
public Blend()
Initializes a new instance of the Blend class.
Blend(int count)
public Blend(int count)
Initializes a new instance of the Blend class with the specified number of factors and positions.
Parameters:
Parameter | Type | Description |
---|---|---|
count | int | The number of elements in the Blend.Factors and Blend.Positions arrays. |
getFactors()
public float[] getFactors()
Gets an array of blend factors for the gradient.
Returns: float[] - an array of blend factors for the gradient.
setFactors(float[] value)
public void setFactors(float[] value)
Sets an array of blend factors for the gradient.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float[] | an array of blend factors for the gradient. |
getPositions()
public float[] getPositions()
Gets an array of blend positions for the gradient.
Returns: float[] - an array of blend positions for the gradient.
setPositions(float[] value)
public void setPositions(float[] value)
Sets an array of blend positions for the gradient.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float[] | an array of blend positions for the gradient. |