diff options
author | John Hoford <hoford@google.com> | 2012-10-09 16:17:17 -0700 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2012-10-09 17:18:26 -0700 |
commit | 9ea20852baf8a2eeae2e4fc19f12a9f35b106b0c (patch) | |
tree | 8aef50c0f5a723be057df448fc154d165e2faf44 /src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java | |
parent | 23c296213a05f5263451c644dad6fce23a15fe0c (diff) | |
download | android_packages_apps_Snap-9ea20852baf8a2eeae2e4fc19f12a9f35b106b0c.tar.gz android_packages_apps_Snap-9ea20852baf8a2eeae2e4fc19f12a9f35b106b0c.tar.bz2 android_packages_apps_Snap-9ea20852baf8a2eeae2e4fc19f12a9f35b106b0c.zip |
add filters
bug:7234321
Change-Id: I4c9695c3ad90fcb7f4d67d40faa0a7da85f99030
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/presets/ImagePresetFX.java | 29 |
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)); + } + } + +} |