图片放大

Bitmap bmp=BitmapFactory.decodeResource(getResources(), R.drawable.detail_moren);
int bmpWidth=bmp.getWidth();
int bmpHeight=bmp.getHeight();
float scaleWidth=(float) 1.5;
float scaleHeight=(float) 1.5;
Matrix matrix = new Matrix();
matrix.postScale(scaleWidth, scaleHeight);
Bitmap resizeBmp = Bitmap.createBitmap(bmp,0,0,bmpWidth, bmpHeight,matrix,true);

原文地址:https://www.cnblogs.com/clarence/p/3600194.html