diff options
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java index e36f096ad..7a8df71af 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterExposure.java @@ -27,18 +27,22 @@ public class ImageFilterExposure extends SimpleImageFilter { } public FilterRepresentation getDefaultRepresentation() { - FilterRepresentation representation = super.getDefaultRepresentation(); + FilterBasicRepresentation representation = + (FilterBasicRepresentation) super.getDefaultRepresentation(); representation.setName("Exposure"); representation.setFilterClass(ImageFilterExposure.class); representation.setTextId(R.string.exposure); representation.setButtonId(R.id.exposureButton); + representation.setMinimum(-100); + representation.setMaximum(100); + representation.setDefaultValue(0); return representation; } native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float bright); @Override - public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { + public Bitmap apply(Bitmap bitmap, float scaleFactor, int quality) { if (getParameters() == null) { return bitmap; } |