[英]Get imagelist image to Clipboard
I need to get image in to Imagelist to windows clipboard. 我需要将图像放入Imagelist到Windows剪贴板中。 I don't want to save that image in the computer.
我不想将该图像保存在计算机中。 I found lots of article and post that explaining how to set image to Picturebox from clipboard.
我找到了很多文章,并发表了文章,解释了如何从剪贴板将图像设置为Picturebox。 But I need the opposite direction.
但是我需要相反的方向。
Is there any code support for vb.net or C#? vb.net或C#是否有任何代码支持?
It's as simple as 就这么简单
Clipboard.SetImage(pictureBox.Image);
If you have ImageList
, then 如果您有
ImageList
,那么
Clipboard.SetImage(imageList.Images[index]);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.