d
Amit DhamuSoftware Engineer
 

Save Canvas as PNG

1 minute read 00000 views
<canvas id="my-canvas"></canvas>
var c = document.getElementById('my-canvas')
window.open(c.toDataURL('image/png'))