186
rated 0 times
[
193]
[
7]
/ answers: 1 / hits: 32019
/ 9 Years ago, sun, june 7, 2015, 12:00:00
I'm working on a canvas drawing project. I convert the canvas as an image, then I save that image as '.png'. I have to right click on the image and select the 'save image as' option. But I want to provide that option through a button. When I click the button it should be saved.
Any example or idea would be appreciated.
This is a js function that converts canvas to png.
function save2()
{
window.open(canvas.toDataURL('image/png'));
var gh=(canvas.toDataURL('png'));
alert(converted);
}
More From » jquery