A
A
Andrew2012-09-19 15:02:27
JavaScript
Andrew, 2012-09-19 15:02:27

How to do a flip on an image after a rotation?

Good afternoon!
There is such a situation. There is an image, it must be rotated, reflected vertically / horizontally. All this is done in canvas. When I do a vertical/horizontal flip on the original image, everything is ok. But when I rotate the picture, and then do a flip, nothing comes out (( What to do? What's the matter?
Code at http://jsfiddle.net/9hcp4/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavlo Ponomarenko, 2012-09-19
@xmdy

jsfiddle.net/9hcp4/6/
something like this. it remains only to write countNewSize correctly)

S
SerDIDG, 2012-09-19
@SerDIDG

Interestingly, everything works correctly in opera, but in ff it seems that something is wrong with the coordinates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question