缩放图片
Bitmap bitmap = BitmapFactory.decodeStream(is);
Matrix matrix = new Matrix();
int width = bitmap.getWidth();
int height = bitmap.getHeight();
**matrix.postScale(2, 2);//设置缩放级别**
Bitmap resizedBitmap = Bitmap.createBitmap(bitmap, 0, 0,
width, height, matrix, true);