示例#1
0
        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);
        }
示例#2
0
        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();
        }
示例#3
0
 public void Clear()
 {
     _rootElement = null;
     parser = null;
 }
示例#4
0
 public void Clear()
 {
     _rootElement = null;
     parser       = null;
 }
示例#5
0
 public void Clear()
 {
     SVGParser.Clear();
 }