Java image rotation für animation?

1 Antwort

Am besten mit internen API-Funktionen.

Ansonsten kannst du aber eine Rotation durch zwei Shear-Operationen darstellen. Du stellst erst einmal sicher, dass das Output-Bild genügend Platz hat, dannach führst du die zwei Shear-Operationen aus.

Siehe z.B.:

https://www.ocf.berkeley.edu/~fricke/projects/israel/paeth/rotation_by_shearing.html

https://delta.cs.cinvestav.mx/~mcintosh/oldweb/camex/node37.html

https://zenodo.org/record/1339660/files/10006172.pdf