Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onPictureTaken(byte[] data, final Camera camera) {
- Bitmap bitmap;
- Matrix matrix = new Matrix();
- if (currentCameraId == Camera.CameraInfo.CAMERA_FACING_BACK) {
- matrix.postRotate(90);
- } else {
- Matrix matrixMirrory = new Matrix();
- float[] mirrory = {-1, 0, 0, 0, 1, 0, 0, 0, 1};
- matrixMirrory.setValues(mirrory);
- matrix.postConcat(matrixMirrory);
- matrix.postRotate(90);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement