[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShape.ToImage

ToImage Method

ToImage(string)

Saves the shape to the specified image file.

Declaration
void ToImage(string fileName)
Sub ToImage(fileName As String)
Parameters
Type Name Description
string fileName

The output image file.

ToImage(string, ImageSaveOptions)

Saves the shape to the specified image file using options.

Declaration
void ToImage(string fileName, ImageSaveOptions options)
Sub ToImage(fileName As String, options As ImageSaveOptions)
Parameters
Type Name Description
string fileName

The output image file.

ImageSaveOptions options

The options for output image.

ToImage(Stream, ImageType)

Saves the shape to the specified image stream.

Declaration
void ToImage(Stream stream, ImageType imageType)
Sub ToImage(stream As Stream, imageType As ImageType)
Parameters
Type Name Description
Stream stream

The output image stream.

ImageType imageType

Specifies the type of image to create.

ToImage(Stream, ImageType, ImageSaveOptions)

Saves the shape to the specified image stream using options.

Declaration
void ToImage(Stream stream, ImageType imageType, ImageSaveOptions options)
Sub ToImage(stream As Stream, imageType As ImageType, options As ImageSaveOptions)
Parameters
Type Name Description
Stream stream

The output image stream.

ImageType imageType

Specifies the type of image to create.

ImageSaveOptions options

The options for output image.