C#如何将picturecbox中的图片保存到本地

guangguang465355249 2009-04-29 11:54:14
通过按钮的click事件,将picturebox中的图片另存到本地,弹出另存为对话框,选择存放的位置。
...全文
168 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
Learn-anything 2009-04-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cpp2017 的回复:]
this.saveFileDialog1.ShowDialog();
string Path = this.saveFileDialog1.FileName;
if(Path !="")
this.pictureBox1.Image.Save(Path);
[/Quote]

up
PandaIT 2009-04-30
  • 打赏
  • 举报
回复
mark
lijizun 2009-04-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cpp2017 的回复:]
this.saveFileDialog1.ShowDialog();
string Path = this.saveFileDialog1.FileName;
if(Path !="")
this.pictureBox1.Image.Save(Path);
[/Quote]学习中!
whyabc 2009-04-30
  • 打赏
  • 举报
回复
up
zhoulehua 2009-04-30
  • 打赏
  • 举报
回复
ding
小白_YY 2009-04-30
  • 打赏
  • 举报
回复
2222
jianshao810 2009-04-30
  • 打赏
  • 举报
回复
this.saveFileDialog1.ShowDialog();
string Path = this.saveFileDialog1.FileName;
if(Path !="")
this.pictureBox1.Image.Save(Path);
超维电脑科技 2009-04-30
  • 打赏
  • 举报
回复
接分
lovehongyun 2009-04-30
  • 打赏
  • 举报
回复
pictureBox1.Image.Save方法
看一楼
shui8iuhs 2009-04-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cpp2017 的回复:]
this.saveFileDialog1.ShowDialog();
string Path = this.saveFileDialog1.FileName;
if(Path !="")
this.pictureBox1.Image.Save(Path);
[/Quote]

完全同意
xiaoyasheng 2009-04-30
  • 打赏
  • 举报
回复
我来接分哦
JonasFeng 2009-04-29
  • 打赏
  • 举报
回复
楼上回帖真快!

比较简单的,只需要利用PICTUREBOX的SAVE属性就可以了。
ChrisAK 2009-04-29
  • 打赏
  • 举报
回复
同上...
接分
cpp2017 2009-04-29
  • 打赏
  • 举报
回复
this.saveFileDialog1.ShowDialog();
string Path = this.saveFileDialog1.FileName;
if(Path !="")
this.pictureBox1.Image.Save(Path);

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧