ShapeToImage Method (Stream, ImageFormat)

Creates the shape image and saves it to a stream in the specified format.

Namespace:  Aspose.Cells.Drawing
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.7.0.0 (21.7)
Syntax
public void ToImage(
	Stream stream,
	ImageFormat imageFormat
)

Parameters

stream
Type: System.IOStream
The output stream.
imageFormat
Type: System.Drawing.ImagingImageFormat
The format in which to save the image.
Remarks

The following formats are supported: .bmp, .gif, .jpg, .jpeg, .tiff, .emf.

See Also