C# 如何将Chart生成的统计图输出为图像文件(如*.jpg)

来源:百度知道 编辑:UC知道 时间:2024/06/27 12:34:08
如题.想将chart生成的统计图输出为图像文件,
谢谢,已解决

//画图初始化
Bitmap bMap = new Bitmap(ii * 30 + 140, 540);
Graphics gph = Graphics.FromImage(bMap);
gph.Clear(Color.White);
////
图形生成代码块:
////
//保存输出图片
bMap.Save(Server.MapPath("ProSellStatprice.gif"));
this.ImgPro.ImageUrl = "ProSellStatprice.gif";

你怎么解决的啊

QQ截图