**Inheritance:**
java.lang.Object, [com.aspose.drawing.Brush](../../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

| Constructor | Description |
| --- | --- |
| [SolidBrush(Color color)](#SolidBrush-com.aspose.drawing.Color-) | Initializes a new instance of the [SolidBrush](../../com.aspose.drawing/solidbrush) class. |
## Methods

| Method | Description |
| --- | --- |
| [getColor()](#getColor--) | Gets the color of this SolidBrush object. |
| [setColor(Color value)](#setColor-com.aspose.drawing.Color-) | Sets the color of this SolidBrush object. |
| [deepClone()](#deepClone--) | Creates an exact copy of this [SolidBrush](../../com.aspose.drawing/solidbrush) object. |
### SolidBrush(Color color) {#SolidBrush-com.aspose.drawing.Color-}
```
public SolidBrush(Color color)
```


Initializes a new instance of the [SolidBrush](../../com.aspose.drawing/solidbrush) class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| color | [Color](../../com.aspose.drawing/color) | A Color structure that represents the color of this brush. |

### getColor() {#getColor--}
```
public final Color getColor()
```


Gets the color of this SolidBrush object.

**Returns:**
[Color](../../com.aspose.drawing/color) - the color of this SolidBrush object.
### setColor(Color value) {#setColor-com.aspose.drawing.Color-}
```
public final void setColor(Color value)
```


Sets the color of this SolidBrush object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Color](../../com.aspose.drawing/color) | the color of this SolidBrush object. |

### deepClone() {#deepClone--}
```
public Object deepClone()
```


Creates an exact copy of this [SolidBrush](../../com.aspose.drawing/solidbrush) object.

**Returns:**
java.lang.Object - The [SolidBrush](../../com.aspose.drawing/solidbrush) object that this method creates.
