Answers for "save canvas as image from website"

0

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'/>");
Posted by: Guest on August-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language