开发者

How can I reverse an image using html canvas?

开发者 https://www.devze.com 2023-03-07 02:07 出处:网络
I want to take an image in flip it upside down with html canvas. How开发者_JAVA技巧 can I do this?Somewhere in your javascript, where you draw your image, put context.scale(1, -1); And then after you

I want to take an image in flip it upside down with html canvas. How开发者_JAVA技巧 can I do this?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消