Image.FromStream

FromStream(Stream)

Creates an Image from the specified data stream.

public static Image FromStream(Stream stream)
ParameterTypeDescription
streamStreamA Stream that contains the data for this Image.

Return Value

The Image this method creates.

See Also


FromStream(Stream, bool)

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

public static Image FromStream(Stream stream, bool useEmbeddedColorManagement)
ParameterTypeDescription
streamStreamA Stream that contains the data for this Image.
useEmbeddedColorManagementBooleantrue to use color management information embedded in the data stream; otherwise, false.

Return Value

The Image this method creates.

See Also