图片放大

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);

posted on 2014-03-14 11:35  clarenceV1  阅读(144)  评论(0编辑  收藏  举报

导航