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);