system.windows.form.screen图像捕获 [英] system.windows.form.screen image capture

查看:102
本文介绍了system.windows.form.screen图像捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以如何获取面板在图形屏幕g-object上的位置的形式捕获面板的图像.

I am trying to capture the image of the panel in the form how to get the position of the panel on the screen g-object of graphics.

g.copyscreen(position ..... ,sizeblock);


请帮助.

在此先感谢.


Help please.

Thanks in advance.

推荐答案

为什么要打扰?
试试:
Why bother?
Try:
Bitmap b = new Bitmap(myPanel.Width, myPanel.Height);
myPanel.DrawToBitmap(b, new Rectangle(0, 0, myPanel.Width, myPanel.Height));


这篇关于system.windows.form.screen图像捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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