捕获隐藏的Web浏览器控件

捕获隐藏的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[^]