Android 上进行图片旋转,,Bitmap bitma
分享于 点击 33977 次 点评:113
Android 上进行图片旋转,,Bitmap bitma
Bitmap bitmapOrg = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.moon);Matrix matrix = new Matrix();matrix.postRotate(-80);//旋转的角度Bitmap resizedBitmap = Bitmap.createBitmap(bitmapOrg, 0, 0, bitmapOrg.getWidth(), bitmapOrg.getHeight(), matrix, true);BitmapDrawable bmd = new BitmapDrawable(resizedBitmap);
用户点评