版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27663847/article/details/78667255
1.顺时针旋转90度
byte[] tmp = os.toByteArray();
Bitmap bmpt = BitmapFactory.decodeByteArray(tmp, 0,tmp.length);
Matrix matrix = new Matrix();
matrix.postRotate(90);
Bitmap bmp = Bitmap.createBitmap(bmpt, 0,0,bmpt.getWidth(), bmpt.getHeight(), matrix, false);