I want to rotate a Camera in a viewfinder. My idea is to get the QByteArray and rotate it, so the pixels are shown mirrored in X and Y direction. So if my array looks like this:
5 2 6 8
3 5 2 1
6 7 4 5
3 2 1 7
it should looks like this:
7 1 2 3
5 4 7 6
1 2 5 3
8 6 2 5
Can somebody tell me how I can do that?