Image.FromStream Method (Stream)
.NET Framework 4.6 and 4.5
Creates an Image from the specified data stream.
public static Image FromStream(
The stream does not have a valid image format
stream is null.
You must keep the stream open for the lifetime of the Image.
The stream is reset to zero if this method is called successively with the same stream.
The Image class does not support alpha transparency in bitmaps. To enable alpha transparency, use PNG images with 32 bits per pixel.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1