I have the flip left functionality down (see code below) but I can't seem to find how to do a flip right. Are the calculations similar?
Flip Left:
{
gb.drawImage(img, 0, 0, null);
gb.dispose();
AffineTransform tx = new AffineTransform();
tx.translate(img.getHeight(null) / 2, img.getWidth(null) / 2);
tx.rotate(Math.PI / 2);
tx.translate(-img.getHeight(null) / 2, -img.getWidth(null) / 2);
AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
buffImg = op.filter(buffImg, null);
}