## Graphics::FromImage method


Skapar ett nytt [Graphics](../)‑objekt från den angivna bilden.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| image | const SharedPtr\<Image\>\& | Ett [Image](../../image/)‑objekt från vilket ett [Graphics](../)‑objekt ska skapas |

### ReturnValue

Det skapade [Graphics](../) objektet

## Se även

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