
**Summary:** Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.

**Module:** [aspose.imaging.brushes](/imaging/python-net/aspose.imaging.brushes/)

**Full Name:** aspose.imaging.brushes.HatchBrush

**Inheritance:** Brush

## **Constructors**
| **Name** | **Description** |
| :- | :- |
| [HatchBrush()](#HatchBrush__1) | Initializes a new instance of the HatchBrush class |
## **Properties**
| **Name** | **Type** | **Access** | **Description** |
| :- | :- | :- | :- |
| background_color | [Color](/imaging/python-net/aspose.imaging/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](/imaging/python-net/aspose.imaging/color/) | r/w | Gets or sets the color of hatch lines. |
| hatch_style | [HatchStyle](/imaging/python-net/aspose.imaging/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](/imaging/python-net/aspose.imaging/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](/imaging/python-net/aspose.imaging/brush/).

**Returns**

| Type | Description |
| :- | :- |
| [Brush](/imaging/python-net/aspose.imaging/brush/) | A new [Brush](/imaging/python-net/aspose.imaging/brush/) which is the deep clone of this [Brush](/imaging/python-net/aspose.imaging/brush/) instance. |


