## Graphics.FromHwnd method

创建一个新的Graphics从指定句柄到一个窗口。

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

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| hwnd | IntPtr | 把手放在窗户上。 |

### 返回值

该方法返回一个新的Graphics对于指定的窗口句柄。

### 也可以看看

* class [Graphics](../../graphics)
* 命名空间 [System.Drawing](../../graphics)
* 部件 [Aspose.Drawing](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Drawing.dll -->
