图片放大
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 阅读(146) 评论(0) 收藏 举报
浙公网安备 33010602011771号