Matrix m = new Matrix();
m.setRotate(90, (float) bitmap.getWidth() / 2, (float) bitmap.getHeight() / 2); //旋转的方向及度数
reBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), m, true); //需要生成一个新的位图
Matrix m = new Matrix();
m.setRotate(90, (float) bitmap.getWidth() / 2, (float) bitmap.getHeight() / 2); //旋转的方向及度数
reBitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), m, true); //需要生成一个新的位图