OSDN Git Service

Fix apply geometry.
authornicolasroard <nicolasroard@google.com>
Tue, 29 Jan 2013 00:46:12 +0000 (16:46 -0800)
committernicolasroard <nicolasroard@google.com>
Tue, 29 Jan 2013 00:46:12 +0000 (16:46 -0800)
bug:8068166
Change-Id: I3cfa44dda1af1fbd5455db6027d793b5a44dd5d8

src/com/android/gallery3d/filtershow/presets/ImagePreset.java
src/com/android/gallery3d/filtershow/tools/SaveCopyTask.java

index b571ec6..e6e2953 100644 (file)
@@ -334,7 +334,6 @@ public class ImagePreset {
 
     public Bitmap apply(Bitmap original) {
         Bitmap bitmap = original;
-//        bitmap = applyGeometry(bitmap);
         bitmap = applyFilters(bitmap, -1, -1);
         return applyBorder(bitmap);
     }
index 4bc973e..38a9a3a 100644 (file)
@@ -178,6 +178,7 @@ public class SaveCopyTask extends AsyncTask<ImagePreset, Void, Uri> {
             if (bitmap == null) {
                 return null;
             }
+            bitmap = preset.applyGeometry(bitmap);
             bitmap = preset.apply(bitmap);
 
             Object xmp = null;