# PdfGraphicsState struct

> A saved graphics state; disposing it restores the state, along with any saved after it.

Namespace: [PdfNetStack.Drawing](https://www.jadev-corp.com/api/pdfnetstack-drawing/)  
Assembly: PdfNetStack.dll  
Package: `PdfNetStack`

A saved graphics state; disposing it restores the state, along with any saved after it.

```csharp
public readonly struct PdfGraphicsState : IDisposable
```

**Implements**

[IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

## Methods

### <a id="PdfNetStack_Drawing_PdfGraphicsState_Dispose"></a> Dispose\(\)

Restores the saved state.

```csharp
public void Dispose()
```

Source: https://www.jadev-corp.com/pdfnetstack/api/pdfnetstack-drawing/pdfgraphicsstate/
