利用Matrix,对Bitmap进行缩放
Matrix matrix = new Matrix();
matrix.postScale(scaleWidth, scaleHeight);
Bitmap resizeBitmap = Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), matrix, true);
imageView.setImageBitmap(resizeBitmap);
还可以对bitmap进行旋转呢
matrix.setRotate(rotateAngle);