Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 73905

How can I use an image that is already stored in a canvas? This approach is not working

$
0
0

As the title says, I have a canvas object which already contains an image which was loaded by drag and drop. If I try to do:

dataURL = canvas.toDataURL();
var newImage = new Image();
newImage.src = dataURL;

For some reason it won't work. Why? How can I do it, then?


Viewing all articles
Browse latest Browse all 73905

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>