diff options
author | John Hoford <hoford@google.com> | 2012-10-11 09:13:40 -0700 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2012-10-11 09:13:40 -0700 |
commit | 6f1dfae8dff9114b59d4ae4e44a6cec68d791950 (patch) | |
tree | 387caf5cc0a3e04a98d4c50d8f08d20a77f6b70c /src/com/android/gallery3d/filtershow/filters/ImageFilter.java | |
parent | 823824122d04c9b0073f3bd13c292abdec210de9 (diff) | |
download | android_packages_apps_Snap-6f1dfae8dff9114b59d4ae4e44a6cec68d791950.tar.gz android_packages_apps_Snap-6f1dfae8dff9114b59d4ae4e44a6cec68d791950.tar.bz2 android_packages_apps_Snap-6f1dfae8dff9114b59d4ae4e44a6cec68d791950.zip |
Fix application of FX to not wipe out borders etc.
bug:7289442
Change-Id: I9efdfdc1d8a8c02a718e91a089b531ff26fd582d
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilter.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilter.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilter.java b/src/com/android/gallery3d/filtershow/filters/ImageFilter.java index 662e8ed2b..6d0c020a7 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilter.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilter.java @@ -8,12 +8,27 @@ public class ImageFilter implements Cloneable { protected int mParameter = 0; protected String mName = "Original"; private final String LOGTAG = "ImageFilter"; + public static final byte TYPE_BORDER =1; + public static final byte TYPE_FX = 2; + public static final byte TYPE_WBALANCE = 3; + public static final byte TYPE_VIGNETTE = 4; + public static final byte TYPE_NORMAL = 5; + private byte filterType = TYPE_NORMAL; + + public byte getFilterType(){ + return filterType; + } + + protected void setFilterType(byte type){ + filterType = type; + } @Override public ImageFilter clone() throws CloneNotSupportedException { ImageFilter filter = (ImageFilter) super.clone(); filter.setName(getName()); filter.setParameter(getParameter()); + filter.setFilterType(filterType); return filter; } |