DevExpress.XtraCharts.ChartControl 这个我绘好图形后 请问有什么属性可以获取到当前图片啊,我不需要ExportToImage希望可以直接获取图片然后导入到EXCEL 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 唉 找到了 private Image GetChartImage(ChartControl chart, ImageFormat format) { // Create an image. Image image = null; // Create an image of the chart. using(MemoryStream s = new MemoryStream()) { chart.ExportToImage(s, Format); image = Image.FromStream(s); } // Return the image. return image;} 打开串口时,如何设置超时保护? C#老鸟来解答,小弟刚接触C#,有编程基础,谢谢! 我想学习泛型,但是我的书里没有啊 请问在C#中解释JSON需要导什么包 使用C#的SerialPort类,碰到的问题。 ListView的数据绑定问题~ 急急急 请教一个物流方面的问题!(家九)请进! 中文语音识别问题???只有英文识别资料,没法做下去了。 Web 应用程序没办法调试!:-'( 急,高分相送! 急!急!急!菜鸟问题, 在线等待 c#调用 带有blob类型的 存储过程 ASP.NET和动易网站的用户登录整合
private Image GetChartImage(ChartControl chart, ImageFormat format) {
// Create an image.
Image image = null; // Create an image of the chart.
using(MemoryStream s = new MemoryStream()) {
chart.ExportToImage(s, Format);
image = Image.FromStream(s);
} // Return the image.
return image;
}