admin管理员组文章数量:1406219
Does anybody know if there are plans to add something parable to Mozilla's
canvas.drawWindow()
to WebKit?
I wasn't able to find info about this on WebKit's mailing lists or elsewhere.
Thanks!
Does anybody know if there are plans to add something parable to Mozilla's
canvas.drawWindow()
to WebKit?
I wasn't able to find info about this on WebKit's mailing lists or elsewhere.
Thanks!
Share Improve this question asked Nov 17, 2010 at 11:34 OriOri 12.8k4 gold badges35 silver badges32 bronze badges3 Answers
Reset to default 3If you are developing a Google Chrome extension then you should check this:
http://code.google./chrome/extensions/tabs.html#method-captureVisibleTab
If you are building a web page then you should check this:
http://html2canvas.hertzen./
As MDN states:
This feature is only available for code running with Chrome privileges. It is not allowed in normal HTML pages.
Note: Chrome in this case refers to Firefox's User Interface.
This is mainly a feature that Mozilla has added for AddOns. I could, for example, imagine that an AddOn would render the WebSite onto the canvas and then get the ImageData(maybe do some processing before that) and then save it to disk. Useful for saving screen shots of WebPages or even doing Testing of Layout.
So since this is an Mozilla Extension and not a standard by any means, I see little(read: no) chances for it to be implemented by WebKit, you may want to file a bug for Chromium(http://code.google./p/chromium/issues/list) if you really want it for extension development, but even then you would not be able to use it in every day web pages.
I suggest you to keep look into the WHATWG discussion.
http://lists.whatwg/htdig.cgi/whatwg-whatwg/2011-March/030862.html
I'm also try to implement html2canvas solution or the low level solution + . But in case of long page, is killing the web app.
Just for additional reading you can keep a look at:
https://developer.mozilla/en-US/docs/HTML/Canvas/Drawing_DOM_objects_into_a_canvas http://robert.ocallahan/2011/02/distinguishing-versus-web-resources_02.html
本文标签: javascriptAnything like canvasdrawWindow() in WebKitStack Overflow
版权声明:本文标题:javascript - Anything like canvas.drawWindow() in WebKit? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744993444a2636526.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论