How to convert a canvas to an image javascript
const Canvas = document.getElementById(Id); // Id here
return Canvas.toDataURL();
0
1
function canvasURL(id) {
let canvas = document.getElementById(id);
return canvas.toDataURL(1.0);
}
Thank you!
1
0
Are there any code examples left?
New code examples in category Javascript