public SVGDocument(string originalDocument, SVGGraphics r) { parser = new SVGParser(originalDocument); while (!parser.isEOF && parser.node.name != SVGNodeName.SVG) parser.Next(); _rootElement = new SVGElement(parser, new SVGTransformList(), null, true); }
public SVGElement(SVGParser xmlImp, SVGTransformList inheritTransformList, SVGPaintable inheritPaintable, bool root = false) : base(inheritTransformList) { _rootElement = root; _name = _attrList.GetValue("id"); _xmlImp = xmlImp; _attrList = _xmlImp.node.attributes; if(inheritPaintable != null) { _paintable = new SVGPaintable(inheritPaintable, _xmlImp.node); } else { _paintable = new SVGPaintable(_xmlImp.node); } Init(); }
public void Clear() { _rootElement = null; parser = null; }
public void Clear() { SVGParser.Clear(); }