**Inheritance:**
java.lang.Object
```
public class GraphicsState
```

Represents the state of a [Graphics](../../com.aspose.drawing/graphics) object. This object is returned by a call to the Save methods. This class cannot be inherited.
## Constructors

| Constructor | Description |
| --- | --- |
| [GraphicsState()](#GraphicsState--) | Initializes a new instance of the [GraphicsState](../../com.aspose.drawing.drawing2d/graphicsstate) class. |
## Methods

| Method | Description |
| --- | --- |
| [getClip()](#getClip--) |  |
| [setClip(Region value)](#setClip-com.aspose.drawing.Region-) |  |
| [getTransform()](#getTransform--) |  |
| [setTransform(Matrix value)](#setTransform-com.aspose.drawing.drawing2d.Matrix-) |  |
| [getBounds()](#getBounds--) | Gets the bounds. |
| [setBounds(RectangleF value)](#setBounds-com.aspose.drawing.RectangleF-) | Sets the bounds. |
### GraphicsState() {#GraphicsState--}
```
public GraphicsState()
```


Initializes a new instance of the [GraphicsState](../../com.aspose.drawing.drawing2d/graphicsstate) class.

### getClip() {#getClip--}
```
public final Region getClip()
```




**Returns:**
[Region](../../com.aspose.drawing/region)
### setClip(Region value) {#setClip-com.aspose.drawing.Region-}
```
public final void setClip(Region value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Region](../../com.aspose.drawing/region) |  |

### getTransform() {#getTransform--}
```
public Matrix getTransform()
```




**Returns:**
[Matrix](../../com.aspose.drawing.drawing2d/matrix)
### setTransform(Matrix value) {#setTransform-com.aspose.drawing.drawing2d.Matrix-}
```
public final void setTransform(Matrix value)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Matrix](../../com.aspose.drawing.drawing2d/matrix) |  |

### getBounds() {#getBounds--}
```
public final RectangleF getBounds()
```


Gets the bounds.

**Returns:**
[RectangleF](../../com.aspose.drawing/rectanglef)
### setBounds(RectangleF value) {#setBounds-com.aspose.drawing.RectangleF-}
```
public final void setBounds(RectangleF value)
```


Sets the bounds.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [RectangleF](../../com.aspose.drawing/rectanglef) |  |

