Method Convert
- Namespace
- SharpVectors.Converters
- Assembly
- SharpVectors.Converters.Wpf.dll
Convert(string, Stream)
This performs the conversion of the specified SVG file, and saves the output to the specified image file.
public bool Convert(string svgFileName, Stream imageStream)
Parameters
svgFileName
stringThe full path of the SVG source file.
imageStream
StreamThe output image file. This is optional. If not specified, an image file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
svgFileName
is null.- ArgumentException
If the
svgFileName
is empty.-or-
If thesvgFileName
does not exists.
Convert(Stream, Stream)
This performs the conversion of the specified SVG source, and saves the output to the specified image file.
public bool Convert(Stream svgStream, Stream imageStream)
Parameters
svgStream
StreamA stream providing access to the SVG source data.
imageStream
StreamThe output image file. This is optional. If not specified, an image file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
imageStream
is null.-or-
If thesvgStream
is null.- ArgumentException
If the
imageStream
is empty.
Convert(TextReader, Stream)
This performs the conversion of the specified SVG source, and saves the output to the specified image file.
public bool Convert(TextReader svgTextReader, Stream imageStream)
Parameters
svgTextReader
TextReaderA text reader providing access to the SVG source data.
imageStream
StreamThe output image file. This is optional. If not specified, an image file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
imageStream
is null.-or-
If thesvgTextReader
is null.- ArgumentException
If the
imageStream
is empty.
Convert(XmlReader, Stream)
This performs the conversion of the specified SVG source, and saves the output to the specified image file.
public bool Convert(XmlReader svgXmlReader, Stream imageStream)
Parameters
svgXmlReader
XmlReaderAn XML reader providing access to the SVG source data.
imageStream
StreamThe output image file. This is optional. If not specified, an image file is created in the same directory as the SVG file.
Returns
Exceptions
- ArgumentNullException
If the
imageStream
is null.-or-
If thesvgXmlReader
is null.- ArgumentException
If the
imageStream
is empty.