hi all~
i wonder is there any way we can rotate an image say, 90 degrees orso ?
hi all~
i wonder is there any way we can rotate an image say, 90 degrees orso ?
You should probably ask this in newless clubies or java2d… You can rotate an image using an AffineTransform object that is set to rotate the specified amount. Just give the object to the graphics context that you’re using, like this:
//create the AffineTransform and set it to rotate 90 degrees.
g.setTransform(myAffineTransform);
//render image here
//you may want to rotate in the reverse direction now so that everything else isn’t rotated.