소스 검색

- added Comment

tobiasKaminsky 10 년 전
부모
커밋
f46dd624f7
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/com/owncloud/android/ui/preview/PreviewImageFragment.java

+ 7 - 0
src/com/owncloud/android/ui/preview/PreviewImageFragment.java

@@ -421,6 +421,13 @@ public class PreviewImageFragment extends FileFragment {
             return result;
         }
         
+        /**
+         * Rotate bitmap according to EXIF orientation. 
+         * Cf. http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/ 
+         * @param bitmap Bitmap to be rotated
+         * @param storagePath Path to source file of bitmap. Needed for EXIF information. 
+         * @return correctly EXIF-rotated bitmap
+         */
         private Bitmap rotateImage(Bitmap bitmap, String storagePath){
             Bitmap resultBitmap = bitmap;