
**Summary:** Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.

**Module:** [aspose.psd.brushes](/psd/python-net/aspose.psd.brushes/)

**Full Name:** aspose.psd.brushes.HatchBrush

**Inheritance:** Brush

**Aspose.PSD Version:** 24.12.0

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [HatchBrush()](#HatchBrush__1) | Initializes a new instance of the HatchBrush class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| background_color | [Color](/psd/python-net/aspose.psd/color) | r/w | Gets or sets the color of spaces between the hatch lines. |
| disposed | bool | r | Gets a value indicating whether this instance is disposed. |
| foreground_color | [Color](/psd/python-net/aspose.psd/color) | r/w | Gets or sets the color of hatch lines. |
| hatch_style | [HatchStyle](/psd/python-net/aspose.psd/hatchstyle) | r/w | Gets or sets the hatch style of this brush. |
| 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()](#deep_clone__1) | Creates a new deep clone of the current [Brush](/psd/python-net/aspose.psd/brush/). |


### Constructor: HatchBrush() {#HatchBrush__1}


```
 HatchBrush() 
```

Initializes a new instance of the HatchBrush class

### Method: deep_clone() {#deep_clone__1}


```
 deep_clone() 
```

Creates a new deep clone of the current [Brush](/psd/python-net/aspose.psd/brush/).

**Returns**

| Type | Description |
| :- | :- |
| [Brush](/psd/python-net/aspose.psd/brush) | A new [Brush](/psd/python-net/aspose.psd/brush/) which is the deep clone of this [Brush](/psd/python-net/aspose.psd/brush/) instance. |


