I am having a problem and I am sure that there is a simple answer.

How do I rotate a shape?

Here is the code that does not work-
     AffineTransform at = AffineTransform.getTranslateInstance(mW/2, mH/2);
     at.rotate(Math.toRadians(90.));
     g.fill(at.createTransformedShape(this));
where this is an instance of a Rectangle2D.Double

Any ideas?

Thanks again
 -Justin
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to