## Graphics::FromImage method


Creates a new [Graphics](../) object from the specified image.

```cpp
static SharedPtr<Graphics> System::Drawing::Graphics::FromImage(const SharedPtr<Image> &image)
```


| Parameter | Type | Description |
| --- | --- | --- |
| image | const SharedPtr\<Image\>\& | An [Image](../../image/) object from which a [Graphics](../) object should be created |

### ReturnValue

The created [Graphics](../) object

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Graphics](../)
* Class [Image](../../image/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
