SvgSceneRenderer Class
Writes a Scene as SVG.
public static class SvgSceneRendererRemarks
The output is deterministic: numbers use the invariant culture and SvgRenderOptions.Precision decimals, identifiers are numbered in document order, and each element is on its own line. The root element has role="img", and the title and the description of the scene become its title and desc. The SceneElement.DataAttributes of an element are written in the order of their names.
Methods
| Name | Description |
|---|---|
| Render(Scene, SvgRenderOptions?) | Returns the SVG of a scene. |
| Render(Scene, TextWriter, SvgRenderOptions?) | Writes the SVG of a scene. |
Render overloads
Render(Scene, SvgRenderOptions?)
SvgSceneRenderer.csReturns the SVG of a scene.
public static string Render(Scene scene, SvgRenderOptions? options = null)Parameters
sceneScene- The scene.
optionsSvgRenderOptions?- The options, or
nullfor the defaults.
Returns
string The SVG document, without an XML declaration.
Render(Scene, TextWriter, SvgRenderOptions?)
SvgSceneRenderer.csWrites the SVG of a scene.
public static void Render(Scene scene, TextWriter writer, SvgRenderOptions? options = null)Parameters
sceneScene- The scene.
writerTextWriter- The destination.
optionsSvgRenderOptions?- The options, or
nullfor the defaults.