Friday, 15 May 2015

java - How to rotate a Pixmap on the fly on LibGDX -



java - How to rotate a Pixmap on the fly on LibGDX -

this question not relevant how draw rotated image on pixmap (libgdx), case want rotate 2x7 image, , code not work. knows how rotate pixmap?

currently utilize bufferedimages cant utilize on android.

edit: code above works on rotations of 90, , want rotate in grade w/o losing data.

examples, seek imagine pixmap;

1,2,3,4,5,6,7 1,2,3,4,5,6,7

i want rotate into, 45 example.

0,0,0,0,0,0,7 0,0,0,0,0,6,7 0,0,0,0,5,6,0 0,0,0,4,5,0,0 0,0,3,4,0,0,0 0,2,3,0,0,0,0 1,2,0,0,0,0,0 1,0,0,0,0,0,0

and 90 example

7,7 6,6 5,5 4,4 3,3 2,2 1,1

and want rotate negative values too, -45

1,0,0,0,0,0,0 1,2,0,0,0,0,0 0,2,3,0,0,0,0 0,0,3,4,0,0,0 0,0,0,4,5,0,0 0,0,0,0,5,6,0 0,0,0,0,0,6,7 0,0,0,0,0,0,7

thank you.

java android libgdx awt pixmap

No comments:

Post a Comment