Currently I am using Canvas2Image to save the content of my HTML5 canvas. It doesn't appear to work in Google Chrome, however. Any ideas on how to work around the issue are welcome. :)
相关问题
- How to access the camera from my Windows Phone 8 a
- Does using percentages instead of pixels change an
- Method for drawing circles in a pyramid pattern
- Resizing a .png image when drawing to HTML5 canvas
- HTML 5 - how to zoom canvas background image
相关文章
- HTML5 control
- Use savefig in Python with string and iterative in
- Drawing a filled circle in a canvas on mouseclick
- How to destroy / reload the canvas in html 5?
- Canvas to blob on Edge
- SharedPreferences Save value of Int in a TextView
- saving pictures in Core Data in 'to-many relat
- How to change one texture image of a 3d model(maya
Yes i did it! =)
Take a look into www.assembla.com/code/codetodiagram/subversion/nodes/experimental/canvasBox/default/CanvasBox.js?rev=239#ln1235. You can see it running on http://www.thiagomata.com/codetodiagram/svn/experimental/canvasBox/classDiagram/classDiagram.html.
To make the image dont show into the browser but be as one donwload, i need to create this simple php file: www.assembla.com/code/codetodiagram/subversion/nodes/experimental/canvasBox/default/download.php?rev=239
I need to create a close.html to the browser dont keep a about:blank page after the download start www.assembla.com/code/codetodiagram/subversion/nodes/experimental/canvasBox/default/close.html?rev=239
I will probaly make a big post about it into the thiagomata.blog.com but i think with this files you will already be able to find the way.
Maybe, if you read this post in the future the thiagomata.com link can be broken because i will soon migrate this project to the codetodiagram.com.
That's it! Thiago Mata
canvas.toDataURL()
appears to work fine in Chrome, so it may be a library issue. The "convert canvas to image" functionality seems to work, though.use this code
download these canvas2image.js and base64.js and save it in local folder for the working of this code.
These will be available in the site http://www.nihilogic.dk/labs/canvas2image/