我想在多点触摸事件上旋转和缩放图像,我能够拖动,缩放图像,但我无法理解图像的旋转.我面临问题所以请尽快帮助我.我的代码在那里
public class Touch extends Activity implements OnTouchListener {
private static final String TAG = "Touch";
// These matrices will be used to move and zoom image
Matrix matrix = new Matrix();
Matrix matrix1 = new Matrix();
Matrix savedMatrix = new Matrix();
Matrix savedMatrix2 = new Matrix();
// We can be in one of these 3 states
static final int NONE = 0;
static final int DRAG = 1;
static final int ZOOM = 2;
int mode = NONE;
float …Run Code Online (Sandbox Code Playgroud)