This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've had lots of issues with using rotate and then translate to get an image rotated 180 degrees the way I want to. My problem is that I need the image to be generated upside down now, and I'm rotating it Math.PI and then translating it back into place, but I can't get it right (in trying to translate it to the right position, it's rotating a second time or cancelling the first rotation, or something like that).
I'm looking for an alternative way to do this...at the end, I take my BufferedImage and write it out to a JPEG or PNG, and I'm wondering if there's a way at that point to rotate it without using the Graphics2D.rotate() method...? Thanks!