summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2012-10-09 16:17:17 -0700
committerJohn Hoford <hoford@google.com>2012-10-09 17:18:26 -0700
commitba41b7c49e943d272c7637197f723b713d048059 (patch)
treef6e86a51a16d10e90730b8cb0597eb6b735f6c83 /src
parent1025c6b82118ced7742e611113e1397fa0914149 (diff)
downloadandroid_packages_apps_Snap-ba41b7c49e943d272c7637197f723b713d048059.tar.gz
android_packages_apps_Snap-ba41b7c49e943d272c7637197f723b713d048059.tar.bz2
android_packages_apps_Snap-ba41b7c49e943d272c7637197f723b713d048059.zip
add filters
bug:7234321 Change-Id: I4c9695c3ad90fcb7f4d67d40faa0a7da85f99030
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java b/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java
new file mode 100644
index 000000000..326471ef3
--- /dev/null
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java
@@ -0,0 +1,29 @@
+
+package com.android.gallery3d.filtershow.presets;
+
+import android.graphics.Bitmap;
+
+import com.android.gallery3d.filtershow.filters.ImageFilterBWRed;
+import com.android.gallery3d.filtershow.filters.ImageFilterFx;
+
+public class ImagePresetFX extends ImagePreset {
+ String name;
+ Bitmap fxBitmap;
+
+ public String name() {
+ return name;
+ }
+
+ public ImagePresetFX(Bitmap bitmap, String name) {
+ fxBitmap = bitmap;
+ this.name = name;
+ setup();
+ }
+
+ public void setup() {
+ if (fxBitmap != null) {
+ mFilters.add(new ImageFilterFx(fxBitmap));
+ }
+ }
+
+}