## Graphics::FromImage method


从指定的图像创建一个新的 [Graphics](../) 对象。

```cpp
static SharedPtr<Graphics> System::Drawing::Graphics::FromImage(const SharedPtr<Image> &image)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| image | const SharedPtr\<Image\>\& | 一个用于创建 [Graphics](../) 对象的 [Image](../../image/) 对象 |

### ReturnValue

创建的 [Graphics](../) 对象

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Graphics](../)
* Class [Image](../../image/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
