Rotating a tile in a BufferedImage
I created a BufferedImage of 6 slices from 2 rows and 3 columns and I want to rotate the last slice of the second row. This tile serves as a transition for my animation.
My problems:
How can I access this specific element and rotate it myself without affecting others.
I have searched google for a long time but no answer has been answered.
+2
a source to share
1 answer
Read this code example on how to rotate a WritableRaster using AffineTransform and AffineTransformOp. You should be able to figure out how to get a WritableRaster from a tile to a BufferedImage if you look at the javadoc .
Disclaimer: I've never done this myself. This is a purely research-based answer.
0
a source to share