android camera照片旋转90度

来源:互联网 发布:男生不主动追女生知乎 编辑:程序博客网 时间:2024/05/17 06:24

                bitmap这个为拍照得到的照片

                bMapRotate旋转后的照片          


Matrix matrix = new Matrix();
matrix.reset();
matrix.postRotate(90);
Bitmap bMapRotate = Bitmap.createBitmap(bitmap, 0, 0,
bitmap.getWidth(), bitmap.getHeight(),
matrix, true);

原创粉丝点击