## Graphics::FromImage method


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| image | const SharedPtr\<Image\>\& | 一个 [Image](../../image/) 对象，用于创建 [Graphics](../) 对象 |

### ReturnValue

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

## 另见

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