< canvas />并打印屏幕/屏幕截图 [英] <canvas /> and print screen/screenshot

查看:171
本文介绍了< canvas />并打印屏幕/屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何方法打印屏幕,并将剪贴板数据导入 html5 canvas 元素?



换句话说,是否有办法阅读 post-tagtitle =show questions tagged'javascript'rel =tag> javascript 无法获取此类数据?



如果有任何问题具有 yes 的答案值,我想了解更多详细信息。



提前感谢!

解决方案

看起来有一种方式,它只有Chrome,但它的工作完美无缺。



http:// strd6。 com / 2011/09 / html5-javascript-pasting-image-data-in-chrome /



我希望这只是时间问题,直到其他浏览器实现类似的功能,但是,有一种方法。此外,这可以调整做几乎任何东西。


Is there any way to print screen and get the clipboard data into an element?

In other words, is there a way to read print screened clipboard data (pixels, probably) with javascript?

Or once again this is the case where cannot get such data?

If any of the questions has the answer value of yes, I'd like to know a bit more details.

Thanks in advance!

解决方案

Looks like there is a way, it's Chrome only, but it works flawlessly.

http://strd6.com/2011/09/html5-javascript-pasting-image-data-in-chrome/

I hope it's only a matter of time until other browsers implement similar features, but yeah, there is a way. Plus, this could be tweaked to do almost anything.

这篇关于< canvas />并打印屏幕/屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆