最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - <canvas > and print screenscreenshot - Stack Overflow

programmeradmin1浏览0评论

Is there any way to print screen and get the clipboard data into an html5 canvas 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 javascript 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!

Is there any way to print screen and get the clipboard data into an html5 canvas 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 javascript 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!

Share Improve this question edited Nov 4, 2011 at 17:44 tomsseisums asked Nov 4, 2011 at 17:35 tomsseisumstomsseisums 13.4k20 gold badges88 silver badges148 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

You want to capture the screen and display it in canvas. Please see following link

http://html2canvas.hertzen./

Thanks

No, there is not, for security reasons.

The only thing that es close is Mozilla's drawWindow mand which only works locally.

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

http://strd6./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.

发布评论

评论列表(0)

  1. 暂无评论