Img
class · namespace z3n7 · source Tools/Img.cs
public class Img
SVG rendering.
Methods
DrawSvgAsBase64
public static string DrawSvgAsBase64(string svgContent)
Renders SVG markup to PNG.
| Parameter | Description |
|---|---|
svgContent |
SVG markup. |
Returns: The PNG as Base64.
ImgFromSvg
public static void ImgFromSvg(string svgContent, string pathToScreen)
Renders SVG markup to an image file; the format follows the file extension.
| Parameter | Description |
|---|---|
svgContent |
SVG markup. |
pathToScreen |
Target file. |