Capturing a desktop screenshot with javascript

喜夏-厌秋 提交于 2020-01-24 04:16:25

问题


Is it possible to capture a screenshot of the client's windows desktop using javascript? What about in linux and mac OS?

Clarification

This question has not been asked or answered, because I'm looking to capture the entire desktop, not just the browser. I would also like to capture 'native' screenshot rather than one that is recreated from some underlying representation (which would be impossible on any OS).


回答1:


Exist a plugin that you can configure the image that you want to take or part of element of your DOM like the body or a particular div.

Plugin is: HTML2CANVAS



来源:https://stackoverflow.com/questions/17742867/capturing-a-desktop-screenshot-with-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!