将图像从一个图片框传输到另一个图片框 [英] Transfering image from one picture box to another picturebox

查看:68
本文介绍了将图像从一个图片框传输到另一个图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上试图保存显示的图像(例如,图片盒1中的1).并将其传输到(例如,表格2中的picturebox1)

basically trying to be able to save a image that is shown on (eg . picturebox 1 in from 1 )  and transfer it to ( eg picturebox1 in form 2)






推荐答案

基本上试图保存显示的图像(例如,图片框1中的1).并将其传输到(例如,表格2中的picturebox1)
basically trying to be able to save a image that is shown on (eg . picturebox 1 in from 1 )  and transfer it to ( eg picturebox1 in form 2)

尤伯,

诱惑将是使用默认实例,但是最好不要这样做.

The temptation will be to use the default instance, but you're better off to not do that.

创建一个新表单,并在该表单中设置一个具有一个参数的构造函数:一张图像.

Create a new form and in that form, set up a constructor that has one parameter: An image.

然后在调用其他表单时传递该图像.当然,请先检查图片是否不为空.

Then pass that image in when you call the other form. Check first that the image isn't null of course,.


这篇关于将图像从一个图片框传输到另一个图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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