转换WebBrowser.Document位图? [英] Converting WebBrowser.Document To A Bitmap?
本文介绍了转换WebBrowser.Document位图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能绘制WebBrowser.Document为位图?基本上采取了WebBrowser控件的截图(注意,这是与不活窗体上的web浏览器,只是在code)。
Is it possible to draw a WebBrowser.Document to a Bitmap? Basically taking a screenshot of a WebBrowser control (note, this is with a WebBrowser that doesn't live on a form, but just in code).
WebBrowser w = new WebBrowser();
w.Document = "<b>Hello</b> world.";
w.Document.DrawToBitmap ???
谢谢!
推荐答案
的 http://www.bryancook.net/2006/03/screen-capture-for-invisible-windows.html
在这里:
HTTP://www.$c$cproject.com/KB/图形/ screen_capturing.aspx
我相信你应该让你的web浏览器控件的句柄,并保存像在暗示这些链接是作为图像内容。
I believe you should get the handle of your WebBrowser control and save it's content as image like suggested in those links.
这篇关于转换WebBrowser.Document位图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文