Reputation: 1412
I'm trying to get the data from a canvas and set the src attribute of a img element. The problem here is that, the canvas has a background image setted with css, not with canvas methods. Is there any way or method to extract the background image so the toDataURL method could catch it?
Thanks
Upvotes: 1
Views: 113
Reputation: 17385
I guess there is a solid reason why you are not drawing the background image to the canvas itself so I can offer you this solution:
Upvotes: 1