Beispiel #1
0
		public static SvgDocument Parse(XmlDocument document)
		{
			var svgDocument = new SvgDocument();
			var rootElement = new SvgSvgElement(svgDocument, document.DocumentElement);

			var childNodes = new Collection<SvgElement>();
			childNodes.Add(rootElement);
			svgDocument._ChildNodes = childNodes;
			svgDocument.RootElement = rootElement;

			return svgDocument;
		}
Beispiel #2
0
        public static SvgDocument Parse(XmlDocument document)
        {
            var svgDocument = new SvgDocument();
            var rootElement = new SvgSvgElement(svgDocument, document.DocumentElement);

            var childNodes = new Collection <SvgElement>();

            childNodes.Add(rootElement);
            svgDocument._ChildNodes = childNodes;
            svgDocument.RootElement = rootElement;

            return(svgDocument);
        }
Beispiel #3
0
 protected override void RenderSvg(CanvasDrawingSession session, SvgSvgElement element)
 {
     this.RenderChildren(session, element.ChildNodes);
 }
Beispiel #4
0
 protected abstract void RenderSvg(TSession session, SvgSvgElement element);