summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/gallery/BaseImage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/gallery/BaseImage.java')
-rw-r--r--src/com/android/camera/gallery/BaseImage.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/android/camera/gallery/BaseImage.java b/src/com/android/camera/gallery/BaseImage.java
index f6b0211..10a0c9f 100644
--- a/src/com/android/camera/gallery/BaseImage.java
+++ b/src/com/android/camera/gallery/BaseImage.java
@@ -159,15 +159,17 @@ public abstract class BaseImage implements IImage {
}
public Bitmap fullSizeBitmap(int targetWidthHeight) {
- return fullSizeBitmap(targetWidthHeight, true);
+ return fullSizeBitmap(targetWidthHeight, IImage.ROTATE_AS_NEEDED,
+ IImage.NO_NATIVE);
}
- protected Bitmap fullSizeBitmap(
- int targetWidthHeight, boolean rotateAsNeeded) {
+ public Bitmap fullSizeBitmap(
+ int targetWidthHeight, boolean rotateAsNeeded, boolean useNative) {
Uri url = mContainer.contentUri(mId);
if (url == null) return null;
- Bitmap b = Util.makeBitmap(targetWidthHeight, url, mContentResolver);
+ Bitmap b = Util.makeBitmap(targetWidthHeight, url, mContentResolver,
+ useNative);
if (b != null && rotateAsNeeded) {
b = Util.rotate(b, getDegreesRotated());
}