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
svgFileNamestringThe full path of the SVG source file.
imageStreamStreamThe 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
svgFileNameis null.- ArgumentException
If the
svgFileNameis empty.-or-
If thesvgFileNamedoes 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
svgStreamStreamA stream providing access to the SVG source data.
imageStreamStreamThe 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
imageStreamis null.-or-
If thesvgStreamis null.- ArgumentException
If the
imageStreamis 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
svgTextReaderTextReaderA text reader providing access to the SVG source data.
imageStreamStreamThe 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
imageStreamis null.-or-
If thesvgTextReaderis null.- ArgumentException
If the
imageStreamis 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
svgXmlReaderXmlReaderAn XML reader providing access to the SVG source data.
imageStreamStreamThe 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
imageStreamis null.-or-
If thesvgXmlReaderis null.- ArgumentException
If the
imageStreamis empty.