ColorBlend

Inheritance: java.lang.Object

public final class ColorBlend

Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.

Constructors

ConstructorDescription
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.

Methods

MethodDescription
getColors()Gets an array of colors that represents the colors to use at corresponding positions along a gradient.
setColors(Color[] value)Sets an array of colors that represents the colors to use at corresponding positions along a gradient.
getPositions()Gets the positions along a gradient line.
setPositions(float[] value)Sets the positions along a gradient line.

ColorBlend()

public ColorBlend()

Initializes a new instance of the ColorBlend class.

ColorBlend(int count)

public ColorBlend(int count)

Initializes a new instance of the ColorBlend class with the specified number of colors and positions.

Parameters:

ParameterTypeDescription
countintThe number of colors and positions in this ColorBlend.

getColors()

public Color[] getColors()

Gets an array of colors that represents the colors to use at corresponding positions along a gradient.

Returns: com.aspose.drawing.Color[] - an array of colors that represents the colors to use at corresponding positions along a gradient.

setColors(Color[] value)

public void setColors(Color[] value)

Sets an array of colors that represents the colors to use at corresponding positions along a gradient.

Parameters:

ParameterTypeDescription
valueColor[]an array of colors that represents the colors to use at corresponding positions along a gradient.

getPositions()

public float[] getPositions()

Gets the positions along a gradient line.

Returns: float[] - the positions along a gradient line.

setPositions(float[] value)

public void setPositions(float[] value)

Sets the positions along a gradient line.

Parameters:

ParameterTypeDescription
valuefloat[]the positions along a gradient line.