## FromStream(Stream) {#fromstream}

Creates an Image from the specified data stream.

```csharp
public static Image FromStream(Stream stream)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | A Stream that contains the data for this Image. |

### Return Value

The Image this method creates.

### See Also

* class [Image](../)
* namespace [System.Drawing](../../image/)
* assembly [Aspose.Drawing](../../../)

---

## FromStream(Stream, bool) {#fromstream_1}

Creates an Image from the specified data stream, optionally using embedded color management information in that stream.

```csharp
public static Image FromStream(Stream stream, bool useEmbeddedColorManagement)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | A Stream that contains the data for this Image. |
| useEmbeddedColorManagement | Boolean | true to use color management information embedded in the data stream; otherwise, false. |

### Return Value

The Image this method creates.

### See Also

* class [Image](../)
* namespace [System.Drawing](../../image/)
* assembly [Aspose.Drawing](../../../)


