samedi 28 février 2015

How to rotate a non-square image in Java?



I recently saw this question on how to rotate an image in Java. I copy/pasted it directly from that answer. On implementation, it seems to only rotate images that are squares(that is have the same size, width and height). When I try to use it for a non-square image, it seems to cut off that part that would make it be a rectangle, if that makes sense. Like this



How can I fix/work around this?




Aucun commentaire:

Enregistrer un commentaire