diff options
author | nicolasroard <nicolasroard@google.com> | 2012-10-21 15:39:44 -0700 |
---|---|---|
committer | nicolasroard <nicolasroard@google.com> | 2012-10-21 15:39:44 -0700 |
commit | 104165f1f9858bdebb2d219b077f5227203f7c02 (patch) | |
tree | 72949981b1ca7c145e51d9fc07d83a32ed7ecf9c /src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java | |
parent | 4d276f338bbdc53f8a3b4806265bc26c7fe0ea7c (diff) | |
download | android_packages_apps_Gallery2-104165f1f9858bdebb2d219b077f5227203f7c02.tar.gz android_packages_apps_Gallery2-104165f1f9858bdebb2d219b077f5227203f7c02.tar.bz2 android_packages_apps_Gallery2-104165f1f9858bdebb2d219b077f5227203f7c02.zip |
Fix several issues with crop/straighten
bug:7386266
bug:7386270
bug:7385727
- use a transparent white for the bounds instead of green
- add "rule of third" lines to the crop tool
- improves preview image quality for geometric operations
Change-Id: I94c233e7ea89d67451e7808fb71537d03a1c183d
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java index b9c94b634..2c7ed2dd8 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterGeometry.java @@ -105,7 +105,11 @@ public class ImageFilterGeometry extends ImageFilter { bitmap.getWidth() / rp.width(), null); */ Canvas canvas = new Canvas(temp); - canvas.drawBitmap(bitmap, drawMatrix, new Paint()); + Paint paint = new Paint(); + paint.setAntiAlias(true); + paint.setFilterBitmap(true); + paint.setDither(true); + canvas.drawBitmap(bitmap, drawMatrix, paint); return temp; } |