Table of Contents

Class StreamSvgConverter

Namespace
SharpVectors.Converters
Assembly
SharpVectors.Converters.Wpf.dll

This converts the SVG file to static or bitmap image, which is saved to a file.

public sealed class StreamSvgConverter : SvgConverter, IDisposable
Inheritance
StreamSvgConverter
Implements
Inherited Members

Remarks

The image is save with the Pbgra32 format, since that is the only pixel format which does not throw an exception with the RenderTargetBitmap.

The DPI used is 96.

Constructors

StreamSvgConverter(WpfDrawingSettings)

Initializes a new instance of the StreamSvgConverter class with the specified drawing or rendering settings.

StreamSvgConverter(bool, bool, WpfDrawingSettings)

Initializes a new instance of the StreamSvgConverter class with the specified drawing or rendering settings and the saving options.

Properties

Drawing

Gets the last created drawing.

Encoder

Gets or sets a custom bitmap encoder to use in encoding the drawing to an image file.

EncoderType

Gets or set the bitmap encoder type to use in encoding the drawing to an image file.

FallbackOnWriterError

Gets or sets a value indicating whether to fall back and use the .NET Framework image writer when an error occurred in using the custom writer.

WriterErrorOccurred

Gets a value indicating whether a writer error occurred when using the custom image writer.

Methods

Convert(Stream, Stream)

This performs the conversion of the specified SVG source, and saves the output to the specified image file.

Convert(TextReader, Stream)

This performs the conversion of the specified SVG source, and saves the output to the specified image file.

Convert(string, Stream)

This performs the conversion of the specified SVG file, and saves the output to the specified image file.

Convert(XmlReader, Stream)

This performs the conversion of the specified SVG source, and saves the output to the specified image file.