Class FileSvgReader
- Namespace
- SharpVectors.Converters
- Assembly
- SharpVectors.Converters.Wpf.dll
This converts a SVG file to DrawingGroup object, and can optionally save the result to a file as XAML.
public sealed class FileSvgReader : SvgConverter, IDisposable
- Inheritance
-
FileSvgReader
- Implements
- Inherited Members
Constructors
- FileSvgReader(WpfDrawingSettings, bool)
Initializes a new instance of the FileSvgReader class with the specified drawing or rendering settings.
- FileSvgReader(bool, bool, DirectoryInfo, WpfDrawingSettings, bool)
Initializes a new instance of the FileSvgConverter class with the specified drawing or rendering settings, the saving options and the working directory.
Properties
- Drawing
Gets or sets the last created drawing.
- FallbackOnWriterError
Gets or sets a value indicating whether to fall back and use the .NET Framework XAML writer when an error occurred in using the custom writer.
- ImageFile
Gets the output image file path if generated.
- WriterErrorOccurred
Gets a value indicating whether a writer error occurred when using the custom XAML writer.
- XamlFile
Gets the output XAML file path if generated.
- ZamlFile
Gets the output ZAML file path if generated.
Methods
- Dispose(bool)
This releases the unmanaged resources used by the SvgConverter and optionally releases the managed resources.
- Read(Stream)
Reads in the specified SVG file stream and converts it to WPF drawing.
- Read(TextReader)
Reads in the specified source from the SVG file reader and converts it to WPF drawing.
- Read(string)
Reads in the specified SVG file and converts it to WPF drawing.
- Read(string, DirectoryInfo)
Reads in the specified SVG file, converting it to WPF drawing and saving the results to the specified directory if successful.
- Read(Uri)
Reads in the specified SVG file and converts it to WPF drawing.
- Read(XmlReader)
Reads in the specified source SVG file reader and converts it to WPF drawing.
- Save(string, bool, bool)
Saves the last converted file to the specified file name.