SolidBrush Class
Contents
[
Hide
]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.9.0
Constructors
Name | Description |
---|---|
SolidBrush() | Initializes a new instance of the SolidBrush class. |
SolidBrush(color) | Initializes a new instance of the SolidBrush class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
color | Color | r/w | Gets or sets the brush color. |
disposed | bool | r | Gets a value indicating whether this instance is disposed. |
opacity | float | r/w | Gets 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
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
color | Color | The solid brush color. |
Method: deep_clone()
deep_clone()
Creates a new deep clone of the current Brush.
Returns
Type | Description |
---|---|
Brush | A new Brush which is the deep clone of this Brush instance. |