开发者

How can I reverse an image using html canvas?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜