ChartDirector 5.1 (.NET Edition)

DrawArea.outSVG


Usage

[VB] Public Function outSVG(filename As String [, options As String ]) As Boolean
[C#] public bool outSVG(string filename [, string options ]);

Description

Writes the DrawArea to a SVG or SVGZ image file.

Note: To output true vector graphics in SVG or SVGZ format, please ensure DrawArea.enableVectorOutput is called immediately after creating the DrawArea object. Otherwise the output will be a bitmap image embedded in SVG or SVGZ.

Arguments

ArgumentDefaultDescription
filename(Mandatory)The filename of the output image file.
options""A text string specifying optional parameters for the SVG output. Currently, the only supported text string is "compress", which means to create a SVGZ (compressed SVG) instead of a regular SVG.

Return Value

A true value indicates no error. A false value indicates the operation is unsuccessful.