//图片实际大小
Bitmap bitmap =BitmapFactory.decodeResource(TQS.overall_context.getResources(),resId);
Matrix matrix = new Matrix();
matrix.reset();
//要缩放的倍数
matrix.postScale(zise, zise);
//缩放后的图片
bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),bitmap.getHeight(), matrix, true);
Bitmap bitmap =BitmapFactory.decodeResource(TQS.overall_context.getResources(),resId);
Matrix matrix = new Matrix();
matrix.reset();
//要缩放的倍数
matrix.postScale(zise, zise);
//缩放后的图片
bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),bitmap.getHeight(), matrix, true);