1 float persentage = mSecondDist / mFirstDist; 2 // 缩放的矩阵 3 Matrix scaleMatrix = new Matrix(); 4 scaleMatrix.setScale(persentage, persentage, mMidX, mMidY); 5 //实时变换的图片资源bitmap 6 mSrcBitmap = Bitmap.createBitmap(mOriginalBitmap, 0, 0, 7 mWidth, mHeight, scaleMatrix, true);
转载于:https://www.cnblogs.com/jarrah/archive/2012/07/06/2578919.html