示例#1
0
        public void SaveAsSvg(string path, int width = 800, int height = 600, bool isDocument = true)
        {
            var svgString = GridViewExporter.ExportToSvgString(this, width, height, isDocument);

            using (var f = new StreamWriter(path))
            {
                f.Write(svgString);
            }
        }
示例#2
0
        public static void ExportToSvg(GridView gridView, string path, int width, int height, bool isDocument)
        {
            var svgString = GridViewExporter.ExportToSvgString(gridView, width, height, isDocument);

            using (var f = new StreamWriter(path))
            {
                f.Write(svgString);
            }
        }
示例#3
0
        public void Save(string path, int width = 800, int height = 600, bool isDocument = true)
        {
            var p = path.ToLower();

            if (p.EndsWith(".png"))
            {
                GridViewExporter.ExportToPng(this, path, width, height);
            }
            else
            {
                GridViewExporter.ExportToSvg(this, path, width, height, isDocument);
            }
        }
示例#4
0
 public void SaveAsPngImage(string path, int width = 800, int height = 600)
 {
     GridViewExporter.ExportToPng(this, path, width, height);
 }