1 private static Bitmap big(Bitmap bitmap) { 2 Matrix matrix = new Matrix(); 3 matrix.postScale(1.5f,1.5f); //长和宽放大缩小的比例 4 Bitmap resizeBmp = Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),bitmap.getHeight(),matrix,true); 5 return resizeBmp; 6 } 7 8 private static Bitmap small(Bitmap bitmap) { 9 Matrix matrix = new Matrix(); 10 matrix.postScale(0.8f,0.8f); //长和宽放大缩小的比例 11 Bitmap resizeBmp = Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),bitmap.getHeight(),matrix,true); 12 return resizeBmp; 13 }