Ejemplo n.º 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);
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 public void Clear()
 {
     _rootElement = null;
     parser = null;
 }
Ejemplo n.º 4
0
 public void Clear()
 {
     _rootElement = null;
     parser       = null;
 }
Ejemplo n.º 5
0
 public void Clear()
 {
     SVGParser.Clear();
 }