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

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

Parameters

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

Return Value

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

//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