I\'ve been trying to figure out how to flip an image for a while, but haven\'t figured out yet.
I\'m using Graphics2D to draw an Image with
Graphics2D
Image
The easiest way to flip the image is by negative scaling it. Example:
g2.drawImage(image, x + width, y, -width, height, null);
That will flip it horizontally. This will flip it vertically:
g2.drawImage(image, x, y + height, width, -height, null);