SolidBrush

Inheritance: java.lang.Object, com.aspose.drawing.Brush

public class SolidBrush extends Brush

Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths.

Constructors

ConstructorDescription
SolidBrush(Color color)Initializes a new instance of the SolidBrush class.

Methods

MethodDescription
getColor()Gets the color of this SolidBrush object.
setColor(Color value)Sets the color of this SolidBrush object.
deepClone()Creates an exact copy of this SolidBrush object.

SolidBrush(Color color)

public SolidBrush(Color color)

Initializes a new instance of the SolidBrush class.

Parameters:

ParameterTypeDescription
colorColorA Color structure that represents the color of this brush.

getColor()

public final Color getColor()

Gets the color of this SolidBrush object.

Returns: Color - the color of this SolidBrush object.

setColor(Color value)

public final void setColor(Color value)

Sets the color of this SolidBrush object.

Parameters:

ParameterTypeDescription
valueColorthe color of this SolidBrush object.

deepClone()

public Object deepClone()

Creates an exact copy of this SolidBrush object.

Returns: java.lang.Object - The SolidBrush object that this method creates.