## Image::FromFile method


Creates an [Image](../) object from the specified file.

```cpp
static SharedPtr<Image> System::Drawing::Image::FromFile(const String &filename, bool use_embedded_color_management=false)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filename | const String\& | A name of the file that contains image data |
| use_embedded_color_management | bool | IGNORED |

### ReturnValue

A shared pointer to the created [Image](../) object.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Image](../)
* Class [String](../../../system/string/)
* Class [Image](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.PDF for C++](../../../)
