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 com.aspose.psd.ColorBlend class.
ColorBlend(int count)Initializes a new instance of the com.aspose.psd.ColorBlend class with the specified number of colors and positions.

Methods

MethodDescription
equals(Object obj)Tests whether the specified object is a com.aspose.psd.ColorBlend class and is equivalent to this com.aspose.psd.ColorBlend class.
getClass()
getColors()Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
getPositions()Gets or sets the positions along a gradient line.
hashCode()Returns a hash code for this instance.
notify()
notifyAll()
setColors(Color[] value)
setPositions(float[] value)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ColorBlend()

public ColorBlend()

Initializes a new instance of the com.aspose.psd.ColorBlend class.

ColorBlend(int count)

public ColorBlend(int count)

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

Parameters:

ParameterTypeDescription
countintThe number of colors and positions in this com.aspose.psd.ColorBlend .

equals(Object obj)

public boolean equals(Object obj)

Tests whether the specified object is a com.aspose.psd.ColorBlend class and is equivalent to this com.aspose.psd.ColorBlend class.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object to test.

Returns: boolean - True if obj is a com.aspose.psd.ColorBlend class equivalent to this com.aspose.psd.ColorBlend class; otherwise, false.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColors()

public Color[] getColors()

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

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

getPositions()

public float[] getPositions()

Gets or sets the positions along a gradient line.

Returns: float[] - An array of values that specify percentages of distance along the gradient line.

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setColors(Color[] value)

public void setColors(Color[] value)

Parameters:

ParameterTypeDescription
valueColor[]

setPositions(float[] value)

public void setPositions(float[] value)

Parameters:

ParameterTypeDescription
valuefloat[]

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int