Blend

Inheritance: java.lang.Object

public final class Blend

Defines a blend pattern for a LinearGradientBrush object. This class cannot be inherited.

Constructors

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
countintThe 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:

ParameterTypeDescription
valuefloat[]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:

ParameterTypeDescription
valuefloat[]an array of blend positions for the gradient.