a tool for saving or converting canvas as img
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8a53946 Dec 18, 2015
Permalink
Failed to load latest commit information.
canvas2image.js Update canvas2image.js Jul 7, 2014
index.html canvas2image Feb 2, 2012
readme.md Update file Dec 10, 2015

readme.md

Canvas2image

a tool of saving or converting canvas to images

Demo

canvas2image

Code

you can just use it like this

Canvas2Image.saveAsImage(canvasObj, width, height, type)
Canvas2Image.saveAsPNG(canvasObj, width, height)
Canvas2Image.saveAsJPEG(canvasObj, width, height)
Canvas2Image.saveAsGIF(canvasObj, width, height)
Canvas2Image.saveAsBMP(canvasObj, width, height)

Canvas2Image.convertToImage(canvasObj, width, height, type)
Canvas2Image.convertToPNG(canvasObj, width, height)
Canvas2Image.convertToJPEG(canvasObj, width, height)
Canvas2Image.convertToGIF(canvasObj, width, height)
Canvas2Image.convertToBMP(canvasObj, width, height)

License

MIT