Code example for Matrix

Methods: getValuessetValues

0
    } 
    	 
    public void tapZoom(ImageView v, PointF p)
    { 
    	float scale = 1.5f;
    	mootrix.getValues(matrixArray);
    	if ((matrixArray[0] * scale) > 3)
    		scale = 3f/matrixArray[0];
      	matrixArray[0] = matrixArray[4] *= scale;
    	matrixArray[2] = p.x - ((p.x - matrixArray[2])*scale);
    	matrixArray[5] = p.y - ((p.y - matrixArray[5])*scale);
    	mootrix.setValues(matrixArray);
    	v.setImageMatrix(mootrix);
    } 
    public float spacing (MotionEvent event)
    { 
    	float x = event.getX(0)-event.getX(1);
    	float y = event.getY(0)-event.getY(1);
    	return FloatMath.sqrt(x*x+y*y);
    	 
Connect your IDE to all the code out there  Get Codota for Java