Class SVGImage
All implementations of SVG graphics in World Modeler must implement this interface
Implements
Inherited Members
Namespace: Quantellia.WMServer.Execution.Model.SVG
Assembly: WMServer.dll
Syntax
public class SVGImage : ISVGImage
Constructors
SVGImage(ISVGImage)
Standard constructor. Must come from one that already exists.
Declaration
public SVGImage(ISVGImage image)
Parameters
| Type | Name | Description |
|---|---|---|
| ISVGImage | image |
Properties
Height
The height in pixels this SVG should be rasterized to. Can be set to zero to maintain aspect ratio if Width is non-zero.
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ImageData
Contains pairs of image names "someImage.png" to their base64 string representations. Any locations in the raw XML with "someImage.png" will be replaced with a temporary unique file saved on the local device, and deleted after the SVG is rasterized.
Declaration
public Dictionary<string, string> ImageData { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
MiscData
Arbitrary data.
Declaration
public Dictionary<string, object> MiscData { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, object> |
Width
The width in pixels this SVG should be rasterized to. Can be set to zero to maintain aspect ratio if Height is non-zero.
Declaration
public int Width { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
XML
The raw XML of this SVG
Declaration
public string XML { get; set; }
Property Value
| Type | Description |
|---|---|
| string |