This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Author

How to rotate Image using java2D API's

Kedar Nirokhekar
Greenhorn

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
Regards,
Kedar

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: http://aspose.com/file-tools
 
subject: How to rotate Image using java2D API's