Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var image = document.createElement('img');
- image.setAttribute('crossOrigin', '');
- image.onload = function() {
- CANVASCONTEXT.drawImage(image, 0, 0, 200, 200)
- }
- image.setAttribute('src', MYEXTERNALURL);
- MYCANVAS.toDataURL()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement