Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var image = document.createElement('img');
  2. image.setAttribute('crossOrigin', '');
  3. image.onload = function() {
  4. CANVASCONTEXT.drawImage(image, 0, 0, 200, 200)
  5. }
  6. image.setAttribute('src', MYEXTERNALURL);
  7.  
  8. MYCANVAS.toDataURL()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement