捕获隐藏的Web浏览器控件 [英] Capture Hidden Webbrowser Control

查看:113
本文介绍了捕获隐藏的Web浏览器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
是否有可能从隐藏的WebbrowserControl中捕获位图?

Hi everyone,
is it possible too capture a Bitmap from a hidden WebbrowserControl?

webBrowser1.DrawToBitmap(b, new Rectangle(0, 0, 600, 400));

>不起作用.
这只会捕获控件本身(滚动条)而不是子控件,因此内容区域仍为白色
:-(

有任何想法吗?

谢谢:-)

doesn''t work.
This will only capture the control itself(scrollbars) not the children''s so the content area is still white
:-(

any Idea?

thanks :-)

推荐答案

这里是一个例子;
http://www.geekpedia.com/code140_Taking-Website-Screenshots-With- The-WebBrowser-Control.html [ ^ ]
Here''s an example;
http://www.geekpedia.com/code140_Taking-Website-Screenshots-With-The-WebBrowser-Control.html[^]


这篇关于捕获隐藏的Web浏览器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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