public SVG AddSvg(SVG svg) { if (svg.IsRoot) { throw new Exception("SVG: must have exactly one root"); } return(AddDrawing(svg)); }
public static Image Make(SVG root) { if (!root.IsRoot) { throw new ArgumentException("no root"); } return(new Image(root) { Xml = new XDocument(new XDeclaration("1.0", "utf-8", "no"), root.ToSvg()) }); }
Image(SVG root) => Root = root;