Shape.ToImage

ToImage(string, ImageSaveOptions)

Creates the shape image and saves it to a file. The extension of the file name determines the format of the image.

public void ToImage(string imageFile, ImageSaveOptions options)
ParameterTypeDescription
imageFileStringThe image file name with full path.
optionsImageSaveOptionsAdditional image creation options

Remarks

The format of the image is specified by using the extension of the file name. For example, if you specify “myfile.png”, then the image will be saved in the PNG format. The following file extensions are recognized: .bmp, .gif, .png, .jpg, .jpeg, .tiff, .tif, .emf.

See Also


ToImage(Stream, ImageSaveOptions)

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

public void ToImage(Stream stream, ImageSaveOptions options)
ParameterTypeDescription
streamStreamThe output stream.
optionsImageSaveOptionsAdditional image creation options

See Also