Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Matrix; import android.util.Log; public class Main { public static void print(Matrix matrix) { float scale = getValue(matrix, Matrix.MSCALE_X); float moveX = getValue(matrix, Matrix.MTRANS_X); float moveY = getValue(matrix, Matrix.MTRANS_Y); Log.e("[MatrixUtils]", "matrix: { moveX: " + moveX + ", moveY: " + moveY + ", scale: " + scale + " }"); } public static float getValue(Matrix matrix, int whichValue) { float[] mMatrixValues = new float[9]; matrix.getValues(mMatrixValues); return mMatrixValues[whichValue]; } }