下载画布图像的飞 [英] Download canvas image on the fly
本文介绍了下载画布图像的飞的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有< div id =qrcode>< / div>
code> jquery.qrcode.js插件用QR码创建一个`元素。
Then jquery.qrcode.js plugin creates over a
` element with the QR Code.
可以这样做吗?
推荐答案
可以保存图片使用HTML5 blob。
The saving of the image can be done using HTML5 blobs.
http://www.html5rocks.com/en/tutorials/file/filesystem/#toc-file-writing
您可以获取Blob中的代码完成:
You can get Blob out of the like done in this code:
https://github.com/miohtama/Krusovice/blob/master/src/tools/resizer.js
这篇关于下载画布图像的飞的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文