如何保存网页图像 [英] How do I save a web page to image
问题描述
我有一个WebBrowser控件,我想保存观看图像的整个页面(任何网页)。
我试着用IHTMLElementRender接口,但它并没有为所有网页的工作。也许是因为有时快照包括滚动条,有时它只是局部的,我做错了什么。
你有一个工作的例子,可以将整个网页保存到图像?
I have a WebBrowser control and I want to save the whole page viewed to image (any web page). I tried using IHTMLElementRender interface but it didn't work for all web pages. Maybe I'm doing something wrong because sometimes the snapshot included the scrollers and sometimes it was just partial. Do you have a working example that can save the whole web page to an image?
感谢。
推荐答案
请参阅的 http://blog.ashmind.com/index.php/2008/09/28/putting-web-snapshots-to-practical-use/
和这里是代码:
的http:// ashmind- web-ui.googlecode.com/svn/trunk/AshMind.Web.Snapshots/
应该正确地识别的大小大部分的时间,但它绝不是一个全面的测试和最终的解决方案。
It should correctly identify the size most of the times, but it is in no way a completely tested and final solution.
这篇关于如何保存网页图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!