Brush

Inheritance: java.lang.Object, com.aspose.imaging.DisposableObject

public abstract class Brush extends DisposableObject

The base brush class.

Constructors

ConstructorDescription
Brush()

Methods

MethodDescription
getOpacity()Gets the brush opacity.
setOpacity(float value)Sets the brush opacity.
deepClone()Creates a new deep clone of the current Brush.
equals(Object o)Check if objects are equal.
hashCode()Get hash code of the current object.

Brush()

public Brush()

getOpacity()

public float getOpacity()

Gets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Returns: float - The brush opacity value.

setOpacity(float value)

public void setOpacity(float value)

Sets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Parameters:

ParameterTypeDescription
valuefloatThe brush opacity value.

deepClone()

public Brush deepClone()

Creates a new deep clone of the current Brush.

Returns: Brush - A new Brush which is the deep clone of this Brush instance.

equals(Object o)

public boolean equals(Object o)

Check if objects are equal.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.