This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to rotate Image using java2D API's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to rotate Image using java2D API Watch "How to rotate Image using java2D API New topic

How to rotate Image using java2D API's

Kedar Nirokhekar

Joined: Dec 10, 2001
Posts: 11
hi all,
I know the image can be rotated using java2d api's.I could able to rotate the image using AffineTransform class. But it
clips the image at corneres on rotation with multiples
of 45 degrees angle. I want to know how should I go about it.If any body can help me out.please..
Thanking in advance

Michael Szul
Ranch Hand

Joined: Sep 18, 2001
Posts: 57
I don't know exactly what you're looking for, because I don't deal much with Java 2D, but have you tried looking at the source code for the Molecule applet that Sun includes with the demo files in the SDK?
rocket mass heater kickstarter
subject: How to rotate Image using java2D API's