Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

save canvas from console

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 #console
ADD COMMENT
Topic
Name
2+3 =