SolidBrush Class

Summary: Solid brush is intended for drawing continiously with specific color. This class cannot be inherited.

Module: aspose.psd.brushes

Full Name: aspose.psd.brushes.SolidBrush

Inheritance: Brush

Aspose.PSD Version: 24.4.0

Constructors

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

Properties

NameTypeAccessDescription
colorColorr/wGets or sets the brush color.
disposedboolrGets a value indicating whether this instance is disposed.
opacityfloatr/wGets or 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.

Methods

NameDescription
deep_clone()Creates a new deep clone of the current Brush.

Constructor: SolidBrush()

 SolidBrush() 

Initializes a new instance of the SolidBrush class.

Constructor: SolidBrush(color)

 SolidBrush(color) 

Initializes a new instance of the SolidBrush class.

Parameters:

ParameterTypeDescription
colorColorThe solid brush color.

Method: deep_clone()

 deep_clone() 

Creates a new deep clone of the current Brush.

Returns

TypeDescription
BrushA new Brush which is the deep clone of this Brush instance.