Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

way to rotate without using Graphics2D.rotate()

 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic