Method ExportImage
ExportImage(string, int, int, bool, string, int, int)
Exports the scene view window contents as a raster or vectorial image.
Declaration
public void ExportImage(string filename, int imageWidth, int imageHeight, bool transparent = true, string backgroundColor = "255,255,255", int jpegQuality = 80, int antialiasing = 1)
Parameters
Type | Name | Description |
---|---|---|
string | filename | Filename of the file to create. The image format is determined from the filename extension. |
int | imageWidth | Width of the exported image. |
int | imageHeight | Height of the exported image |
bool | transparent | Indicates whether an image should be exported with transparent background. This parameter is ignored for the formats that do not support transparency. |
string | backgroundColor | Background color of the image. It's a
character string representing the decimal values in range 0-255 for
red, green, and blue, comma-separated (e.g. |
int | jpegQuality | The quality level of the image if the export format is JPEG. Should be in 0-100 range. |
int | antialiasing | Specified the antialiasing level used to
reduce the stairs effect on the oblique lines. |
Remarks
Supported image formats are .JPG, .BMP, .GIF, .PNG, and .TIF for raster images. For vectorial images .EMF, .WMF, and .SVG are supported. Vectorial image can be exported in top view mode only.