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.
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

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?
I agree. Here's the link:
subject: How to rotate Image using java2D API's
It's not a secret anymore!