Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <canvas id="cnv"></canvas>
- <img id="img" src=""></img>
- var a = document.getElementById("img");
- a.src = document.getElementById("cnv").toDataURL();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement