如何使用C#将图片框图像保存到解决方案资源管理器图像文件夹中? [英] How to save picture box image into solution explorer images folder using C# ?

查看:402
本文介绍了如何使用C#将图片框图像保存到解决方案资源管理器图像文件夹中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请选择这是我从3天开始尝试的问题,但由于没有一些可靠的材料而无法解决这个问题,并且还提供了简单代码的示例...

Please select this is issues i have been trying from 3 days but not able to solve this issues due to not having some reliable materials and also giving an example with simple code...

推荐答案

我不确定为什么要将图像保存到解决方案资源管理器,因为在部署程序时,此位置可能不存在于另一个系统上。



保存图片获取图片:

I'm not sure why you want to save image to solutions explorer, since when the program is deployed this location may not exist on another system.

To save the Image get the Image with:
pictureBox1.Image 





转换为位图,然后保存为例如:



Convert to a Bitmap and then SaveAs e.g:

bmp.Save(saveAsBmp);





这就是你追求的目标吗?



Is this what you were after?


这篇关于如何使用C#将图片框图像保存到解决方案资源管理器图像文件夹中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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