示例#1
0
        Graphic Read(string path)
        {
            using (var s = OpenResource(path))
            {
                var valuesParser = new ValuesParser();

                var r = new Custom.Parsers.SvgReader(new StreamReader(s), new StylesParser(valuesParser), valuesParser);
                Assert.GreaterOrEqual(r.Graphic.Children.Count, 0);
                Assert.Greater(r.Graphic.Size.Width, 1);
                Assert.Greater(r.Graphic.Size.Height, 1);
                return(r.Graphic);
            }
        }
示例#2
0
        Graphic Read(string path)
        {
            using (var s = OpenResource(path))
            {
              var valuesParser = new ValuesParser();

              var r = new Custom.Parsers.SvgReader(new StreamReader(s),new StylesParser(valuesParser),valuesParser );
                Assert.GreaterOrEqual(r.Graphic.Children.Count, 0);
                Assert.Greater(r.Graphic.Size.Width, 1);
                Assert.Greater(r.Graphic.Size.Height, 1);
                return r.Graphic;
            }
        }