Java tutorial
//package com.java2s; import android.graphics.Matrix; public class Main { public static float getCurrentScaleFromMatrix(Matrix matrix) { float[] values = new float[9]; matrix.getValues(values); float scalex = values[Matrix.MSCALE_X]; float skewy = values[Matrix.MSKEW_Y]; return (float) Math.sqrt(scalex * scalex + skewy * skewy); } }