ImageSave Method (Stream, ImageOptionsBase, Rectangle)
Saves the image's data to the specified stream in the specified file format according to save options.

Namespace: Aspose.PSD
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 20.6
Syntax
public virtual void Save(
	Stream stream,
	ImageOptionsBase optionsBase,
	Rectangle boundsRectangle
)

Parameters

stream
Type: System.IOStream
The stream to save the image's data to.
optionsBase
Type: Aspose.PSDImageOptionsBase
The save options.
boundsRectangle
Type: Aspose.PSDRectangle
The destination image bounds rectangle. Set the empty rectangle for use sourse bounds.
Exceptions
ExceptionCondition
ArgumentNullExceptionoptionsBase
ArgumentExceptionCannot save to the specified format as it is not supported at the moment.;optionsBase
ImageSaveExceptionImage export failed.
See Also