Contains methods to read an SVG image file.
More...
|
static Func< string, bool, Page > | ParseImageURI |
| A function that takes as input an image URI and a boolean value indicating whether the image should be interpolated, and returns a Page object containing the image. By default, this is equal to ParseSVGURI, i.e. it is only able to parse SVG images. If you wish to enable the parsing of other formats, you should install the "VectSharp.MuPDFUtils" NuGet package and enable the parser in your program by doing something like: More...
|
|
Contains methods to read an SVG image file.
Definition at line 33 of file SVGParser.cs.
◆ FromFile()
static Page VectSharp.SVG.Parser.FromFile |
( |
string |
fileName | ) |
|
|
static |
Parses an SVG image file into a Page containing the image.
- Parameters
-
fileName | The path to the SVG image file. |
- Returns
- A Page containing the image represented by the file.
Definition at line 200 of file SVGParser.cs.
◆ FromStream()
static Page VectSharp.SVG.Parser.FromStream |
( |
Stream |
svgSourceStream | ) |
|
|
static |
Parses an stream containing SVG source code into a Page containing the image represented by the code.
- Parameters
-
svgSourceStream | The stream containing SVG source code. |
- Returns
- A Page containing the image represented by the svgSourceStream .
Definition at line 210 of file SVGParser.cs.
◆ FromString()
static Page VectSharp.SVG.Parser.FromString |
( |
string |
svgSource | ) |
|
|
static |
Parses SVG source into a Page containing the image represented by the code.
- Parameters
-
svgSource | The SVG source code. |
- Returns
- A Page containing the image represented by the svgSource .
Definition at line 116 of file SVGParser.cs.
◆ ParseSVGURI()
static Page VectSharp.SVG.Parser.ParseSVGURI |
( |
string |
uri, |
|
|
bool |
ignored = false |
|
) |
| |
|
static |
Parses an SVG image URI.
- Parameters
-
uri | The image URI to parse. |
ignored | This value is ignored and is only needed for compatibility. |
- Returns
- A Page containing the parsed SVG image, or null.
Definition at line 54 of file SVGParser.cs.
◆ ParseImageURI
Func<string, bool, Page> VectSharp.SVG.Parser.ParseImageURI |
|
static |
The documentation for this class was generated from the following file: