0
使用Graphics2D绘图时使用AffineTransform。在绘制它之前,我使用它来转换Shape。 rx和ry应该是旋转的,但是在绘制图形时剪切不会旋转。我如何执行轮换?我尝试使用默认的构造函数,然后调用旋转,缩放和平移,但形状看起来不像他们应该看起来。如何设置AffineTransform旋转而不是剪切?
transform = new AffineTransform(sx, rx, ry, sy, tx, ty);
transform.createTransformedShape(shape); // Where shape is a GeneralPath instance