Blend
Inheritance: java.lang.Object
public final class Blend
Defines a blend pattern. This class cannot be inherited.
The typical blend class usage is defining a blend pattern for brush. And thus the blend properties should be initialized carefully. Null arrays are not allowed. The brush will throw the appropriate exception if blend factors or positions array are empty or their length is not the same. If there are two or more elements in the positions array then the first element should be 0 and the last should be 1.
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 |
---|---|
equals(Object obj) | Tests whether the specified object is a com.aspose.psd.Blend class and is equivalent to this com.aspose.psd.Blend class. |
getClass() | |
getFactors() | Gets the array of blend factors for the gradient. |
getPositions() | Gets the array of blend positions for the gradient. |
hashCode() | Returns a hash code for this instance. |
notify() | |
notifyAll() | |
setFactors(float[] value) | Sets the array of blend factors for the gradient. |
setPositions(float[] value) | Sets the array of blend positions for the gradient. |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Blend()
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.
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 factor and position arrays. |
equals(Object obj)
public boolean equals(Object obj)
Tests whether the specified object is a com.aspose.psd.Blend class and is equivalent to this com.aspose.psd.Blend class.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The object to test. |
Returns: boolean - True if obj is a com.aspose.psd.Blend class equivalent to this com.aspose.psd.Blend class; otherwise, false.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getFactors()
public float[] getFactors()
Gets the array of blend factors for the gradient.
Returns: float[] - The array of blend factors that specify the percentages of the starting color and the ending color to be used at the corresponding position.
getPositions()
public float[] getPositions()
Gets the array of blend positions for the gradient.
Returns: float[] - The array of blend positions that specify the 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()
setFactors(float[] value)
public void setFactors(float[] value)
Sets the array of blend factors for the gradient.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float[] | The array of blend factors that specify the percentages of the starting color and the ending color to be used at the corresponding position. |
setPositions(float[] value)
public void setPositions(float[] value)
Sets the array of blend positions for the gradient.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float[] | The array of blend positions that specify the percentages of distance along the gradient line. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |