Reputation: 5546
I am loading an image into an HTML 5 Canvas using drawImage method. How do I get a reference to that image later (maybe on some mouse-clicked event) so that I can do a transformation to the image (like rotation)?
Upvotes: 0
Views: 240
Reputation: 463
Save a reference to the Image object you used to paint to the canvas.
Then,
Upvotes: 1