Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

download canvas as image

//download canvas as image
function downloadCanvas() {
    let link = document.createElement("a");
    link.download = "image_name.png";
    link.href = canvas.toDataURL("image/png");
    link.click();
}
Source by www.sanwebe.com #
 
PREVIOUS NEXT
Tagged: #download #canvas #image
ADD COMMENT
Topic
Name
9+7 =