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.
which *I think* should behave the same as Method 2) AffineTransform scale = AffineTransform.getScaledInstance(xxx); AffineTransform rotate= AffineTransform.getRotateInstance(xxx); rotate.translate(xx);
Method 3) is to run op.filter after each transform using Method 2) only without concatenating the transforms. This is the only way I can be accurate.
Method 2) will usually put me off 100pixels without specifically trying to keep the aspect ratio.
Method 1) puts me way off.. In addition Method 1) and Method 2) leave a black box no matter which image height i use. I understand that when its rotated it should be rotate for a different image width and height after scaling.