## Graphics.FromHwnd method

Creates a new Graphics from the specified handle to a window.

```csharp
public static Graphics FromHwnd(IntPtr hwnd)
```

| Parameter | Type | Description |
| --- | --- | --- |
| hwnd | IntPtr | Handle to a window. |

### Return Value

This method returns a new Graphics for the specified window handle.

### See Also

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


