this is an expensive operation that copies the image in place with the pixels rotated . if possible rather use getorientationmatrix , and set that as the imagematrix on an imageview . concode_field_sep int PAINT_FLAGS concode_elem_sep String TAG concode_field_sep int getOrientation concode_elem_sep Bitmap rotateImage concode_elem_sep Bitmap fitCenter concode_elem_sep int getExifOrientationDegrees concode_elem_sep Bitmap rotateImageExif concode_elem_sep Bitmap centerCrop
Bitmap function ( String arg0 , Bitmap arg1 ) { int loc0 = getOrientation ( arg0 ) ; return rotateImage ( arg1 , loc0 ) ; }