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
You can use a transform on your Graphics, that should rotate the image just fine. Below is a sample code that you can use to acheive this:
AffineTransform affineTransform = new AffineTransform();
//rotate the image by 45 degrees
affineTransform.rotate(Math.toRadians(45), x, y);
g2d.drawImage(image, m_affineTransform, null);