Rotating an Image

Hi all,

I use the free gnu.jpdf lib to write pdf documents.
After some tryes, I saw that if i use the LANDSCAPE format (the Page is rotated around 90degrees) all Strings are well drawn, but the Images aren’t rotated. As I saw at the code, i saw that the drawImage Methods aren’t right overriden.

now my question:
is there an easy way to rotate Images (±90 degrees)?
and do I have to use the Raster class?

thank you in advance

bienator

Check out drawImage(Image, AffineTransform, ImageObserver) in Graphics2D.

AffineTransforms can rotate, scale (and a bunch of other stuff).

Kev

Thank you for the help again kev :slight_smile: