C# chart 保存为图片

时间:2016-08-24 17:21:16   收藏:0   阅读:1463
 public void ExportChart(string fileName, Chart chart1)
        { 
           string  GR_Path =@"D:";
            string fullFileName = GR_Path + "\\" + fileName + ".png";
            chart1.SaveImage(fullFileName, System.Windows.Forms.DataVisualization.Charting.ChartImageFormat.Png);
        }

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!