Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

save canvas as image from website

var canvas = document.getElementById("alpha");
var dataURL = canvas.toDataURL("image/png");
var newTab = window.open('about:blank','image from canvas');
newTab.document.write("<img src='" + dataURL + "' alt='from canvas'/>");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #canvas #image #website
ADD COMMENT
Topic
Name
1+7 =