如何在Windows应用程序中保存图片框图像? [英] how to save picture box image in windows application?

查看:77
本文介绍了如何在Windows应用程序中保存图片框图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在该应用程序中开发Windows应用程序我正在使用一个图片框,openfile对话,loadimage按钮和saveimage按钮

对于loadimage按钮,我编写类似
的代码
openfiledialogue1.showdialogue()
picturebox1.load(openfiledialogue1.filename)

这次图像显示在图片框中,这很好.

但我的目的是将图片框图像保存在一个文件夹中.先生,该怎么办.不要使用保存对话控件.

请给一个样品溶液先生.

谢谢



i am developing windows application in that application i am taking one picturebox, openfiledialogue, loadimage button and saveimage button

for loadimage button i write code like

openfiledialogue1.showdialogue()
picturebox1.load(openfiledialogue1.filename)

this time image is displayed in picturebox this is fine.

but my aim is that picturebox image is saved in one folder. how todo it sir. not to use of savedialogue control.

please give a sample solution sir.

Thanks

推荐答案

PictureBox1.Image.Save("c:\xx.jpg")


这篇关于如何在Windows应用程序中保存图片框图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆