我不是在问AffineTransform如何工作,而是如何使用它的translate方法。
我已经多次阅读了API,但仍然不理解它的工作原理。
public void translate(double tx,double ty)
Concatenates this transform with a translation transformation. This is equivalent to calling concatenate(T), where T is an AffineTransform represented by the following matrix:
[ 1 0 tx ] [ 0 1 ty ] [ 0 0 1 ]
问题:
affineTransform.translate(100, 0) 怎么会将图像向右移动100像素并向下移动100像素?为什么会这样?
如果我需要经常移动我的图像,我是否使用 translate() 来移动它们?如果不是,移动旋转/旋转后的图像的推荐方法/方式是什么?