ChartDirector 5.1 (.NET Edition)

DrawArea.outSVG2


Usage

[VB] Public Function outSVG2([ options As String ]) As Byte()
[C#] public byte[] outSVG2([ string options ]);

Description

Writes the DrawArea as a SVG or SVGZ image to memory.

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
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 byte array containing the SVG or SVGZ image.