我如何能够保存我的图形 [英] How I Can Save My Graphic
本文介绍了我如何能够保存我的图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好。在我的项目中我想保存我的图形,我在Windows上绘制一个图形,我想在桌面上保存tham。
hello. in my project i want to save my graphic, i am paint at windows forms a graphic and i want to save tham on desktop.
推荐答案
string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
string saveFileName = "testBGSave";
string saveFileType = ".jpg"; // or .png, .bmp
this.BackgroundImage.Save(desktopPath + @"\" + saveFileName + saveFileType);
这篇关于我如何能够保存我的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文