summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2013-03-04 18:33:55 -0800
committerJohn Hoford <hoford@google.com>2013-03-04 18:33:55 -0800
commit377b9710723e1a316be0574fcbc4bb78dd9b11c9 (patch)
tree3070f5431504a577dfe1617535e0ca188a392828 /src
parent27ebe00df84917c6aeee22350ddf62129611c4f8 (diff)
downloadandroid_packages_apps_Snap-377b9710723e1a316be0574fcbc4bb78dd9b11c9.tar.gz
android_packages_apps_Snap-377b9710723e1a316be0574fcbc4bb78dd9b11c9.tar.bz2
android_packages_apps_Snap-377b9710723e1a316be0574fcbc4bb78dd9b11c9.zip
fixed vignetnette refresh during pan/zoom
Change-Id: I6bcc13cdd5232a15f199d8f64258c450f045c1cf
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java b/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java
index f43ea6cad..c55e5ae42 100644
--- a/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java
+++ b/src/com/android/gallery3d/filtershow/imageshow/ImageVignette.java
@@ -150,6 +150,16 @@ public class ImageVignette extends ImageShow {
if (mVignetteRep == null) {
return;
}
+ Matrix toImg = getScreenToImageMatrix(false);
+ Matrix toScr = new Matrix();
+ toImg.invert(toScr);
+ float[] c = new float[] {
+ mVignetteRep.getCenterX(), mVignetteRep.getCenterY() };
+ toScr.mapPoints(c);
+ mElipse.setCenter(c[0], c[1]);
+ mElipse.setRadius(toScr.mapRadius(mVignetteRep.getRadiusX()),
+ toScr.mapRadius(mVignetteRep.getRadiusY()));
+
mElipse.draw(canvas);
}