Creates SVG (Scalable Vector Graphics) drawings from the content of Diagram objects.
Namespace: MindFusion.Diagramming.Wpf.Export
Assembly: MindFusion.Diagramming.Wpf.SvgExport
C# Copy Code |
---|
public class SvgExporter |
Visual Basic Copy Code |
---|
Public Class SvgExporter |
In order to use this component, add references to the MindFusion.Diagramming.Wpf.SvgExport and MindFusion.Svg.dll assemblies to your project.
Scalable Vector Graphics is an XML-based graphics language that describes images with vector shapes, text, and embedded raster graphics. SVG drawings can be displayed in web pages, or edited / imported by vector graphics editing applications.
In order to create an SVG file from a diagram, create an SvgExporter instance and call its Export method, passing a Diagram object as parameter.
The exporter enumerates all graphics primitives contained in the WPF visual tree and creates corresponding SVG elements. This enables custom graphics and hosted controls to be rendered in SVG too
System.Object
MindFusion.Diagramming.Wpf.Export.SvgExporter