How to change image using html canvas?

I want to take the image upside down with an html canvas. How can i do this?

+4
source share
1 answer

Somewhere in your javascript where you draw your image, put context.scale (1, -1); And after you draw your image, reset the scale by context.scale (1, 1);

+6
source

All Articles