Android 图像系列: 旋转Bitmap

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);   //需要生成一个新的位图

你可能感兴趣的:(android,float,Matrix)