C# chart 保存为图片

 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);
        }

 

转载于:https://www.cnblogs.com/Alisa-study/p/5803636.html

你可能感兴趣的:(C# chart 保存为图片)