API ReferenceSandbox.Utility.Svg

SvgDocumentclass

Helper class for reading Scalable Vector Graphics files.

objectSvgDocument
Namespace
Sandbox.Utility.Svg
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Utility.Svg.SvgDocument

Methods1

Showing 1 methods

public static Sandbox.Utility.Svg.SvgDocument FromString(string contents)PUBLICSTATIC

Reads an SVG document from the given string, returning a list of path elements describing the shapes in the image.

ParameterTypeDescription
contentsstringSVG document contents.
Returns:SvgDocument

Properties1

Showing 1 properties

public System.Collections.Generic.IReadOnlyList`1<Sandbox.Utility.Svg.SvgPath> Sandbox.Utility.Svg.SvgDocument.Paths { get; set; }PUBLICGETSET

List of all shapes in the document.

Returns:IReadOnlyList<SvgPath>

On this page