## ReleaseHdc(IntPtr) {#releasehdc_1}

Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.

```csharp
public void ReleaseHdc(IntPtr hdc)
```

| Parameter | Type | Description |
| --- | --- | --- |
| hdc | IntPtr | Handle to a device context obtained by a previous call to the GetHdc method of this Graphics. |

### See Also

* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)

---

## ReleaseHdc() {#releasehdc}

Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.

```csharp
public void ReleaseHdc()
```

### See Also

* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)


