• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

way to rotate without using Graphics2D.rotate()

 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic