ImageLoad Method (Stream)
Loads a new image from the specified stream.

Namespace: Aspose.PSD
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 21.2
public static Image Load(
	Stream stream


Type: System.IOStream
The stream to load image from.

Return Value

Type: Image
The loaded image.
This example demonstrates the use of System.IO.Stream objects to load an existing Image file

//Create an instance of FileStream
using(System.IO.FileStream stream = new System.IO.FileStream(@"C:\temp\sample.psd",System.IO.FileMode.Open))
    //Create an instance of Image class and load an existing file through FileStream object by calling Load method
    using (Aspose.PSD.Image image = Aspose.PSD.Image.Load(stream))
        //do some image processing.
See Also