summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/filtershow/imageshow/MasterImage.java')
-rw-r--r--src/com/android/gallery3d/filtershow/imageshow/MasterImage.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java b/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
index 209c3bdb9..6d47c9176 100644
--- a/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
+++ b/src/com/android/gallery3d/filtershow/imageshow/MasterImage.java
@@ -66,6 +66,7 @@ public class MasterImage implements RenderingRequestCaller {
private GeometryMetadata mPreviousGeometry = null;
private float mScaleFactor = 1.0f;
+ private float mMaxScaleFactor = 3.0f; // TODO: base this on the current view / image
private Point mTranslation = new Point();
private Point mOriginalTranslation = new Point();
@@ -491,4 +492,12 @@ public class MasterImage implements RenderingRequestCaller {
public Bitmap getThumbnailBitmap() {
return mThumbnailBitmap;
}
+
+ public float getMaxScaleFactor() {
+ return mMaxScaleFactor;
+ }
+
+ public void setMaxScaleFactor(float maxScaleFactor) {
+ mMaxScaleFactor = maxScaleFactor;
+ }
}