diff options
author | nicolasroard <nicolasroard@google.com> | 2012-12-06 17:55:34 -0800 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2012-12-06 18:33:43 -0800 |
commit | 8cc3b55d615b349b4fcdff0eeeefe6907d4950ff (patch) | |
tree | 47804d1e002f71d4a8904d3110f440890175ddec /src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java | |
parent | 84e91dd9c1a7a51b7fc61e827a516010cae13913 (diff) | |
download | android_packages_apps_Gallery2-8cc3b55d615b349b4fcdff0eeeefe6907d4950ff.tar.gz android_packages_apps_Gallery2-8cc3b55d615b349b4fcdff0eeeefe6907d4950ff.tar.bz2 android_packages_apps_Gallery2-8cc3b55d615b349b4fcdff0eeeefe6907d4950ff.zip |
Refactor filters to simplify their creation/addition
Bug:7688780
Change-Id: I9e1bb860dc9150bed4a255118654f2ca7f1ec3f0
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java index e38dc8eb5..63f860171 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java @@ -16,6 +16,8 @@ package com.android.gallery3d.filtershow.filters; +import com.android.gallery3d.R; + import android.graphics.Bitmap; public class ImageFilterExposure extends ImageFilter { @@ -24,6 +26,16 @@ public class ImageFilterExposure extends ImageFilter { mName = "Exposure"; } + @Override + public int getButtonId() { + return R.id.exposureButton; + } + + @Override + public int getTextId() { + return R.string.exposure; + } + native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float bright); @Override |