summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ThumbnailController.java
diff options
context:
space:
mode:
authorOwen Lin <>2009-03-24 19:38:57 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 19:38:57 -0700
commit07c90568c7b0568e6cb75559bd13e5d000ac040f (patch)
tree701bc51ede497e210a99b80a98829b86e8b01ecb /src/com/android/camera/ThumbnailController.java
parent9bc8d1b47e5bab978cc9571ddfdedc8309a0b65d (diff)
downloadLegacyCamera-07c90568c7b0568e6cb75559bd13e5d000ac040f.zip
LegacyCamera-07c90568c7b0568e6cb75559bd13e5d000ac040f.tar.gz
LegacyCamera-07c90568c7b0568e6cb75559bd13e5d000ac040f.tar.bz2
Automated import from //branches/donutburger/...@141143,141143
Diffstat (limited to 'src/com/android/camera/ThumbnailController.java')
-rw-r--r--src/com/android/camera/ThumbnailController.java24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/com/android/camera/ThumbnailController.java b/src/com/android/camera/ThumbnailController.java
index 7588c3d..c35c467 100644
--- a/src/com/android/camera/ThumbnailController.java
+++ b/src/com/android/camera/ThumbnailController.java
@@ -188,14 +188,13 @@ public class ThumbnailController {
// Make the mini-thumb size smaller than the button size so that the image corners
// don't peek out from the rounded corners of the frame_thumb graphic:
- final int PADDING_WIDTH = 6;
- final int PADDING_HEIGHT = 6;
+ final int PADDING_WIDTH = 12;
+ final int PADDING_HEIGHT = 12;
LayoutParams layoutParams = mButton.getLayoutParams();
final int miniThumbWidth = layoutParams.width - 2 * PADDING_WIDTH;
final int miniThumbHeight = layoutParams.height - 2 * PADDING_HEIGHT;
- mThumb = ImageManager.extractMiniThumb(original,
- miniThumbWidth, miniThumbHeight, false);
- mThumb = makeRoundedCorner(mThumb, 3, 3);
+ mThumb = ImageManager.extractMiniThumb(
+ original, miniThumbWidth, miniThumbHeight, false);
Drawable[] vignetteLayers = new Drawable[2];
vignetteLayers[0] = mFrame;
@@ -222,21 +221,6 @@ public class ThumbnailController {
}
}
- private static Bitmap makeRoundedCorner(Bitmap thumb, int rx, int ry) {
- if (thumb == null) return null;
- int width = thumb.getWidth();
- int height = thumb.getHeight();
-
- Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
- Canvas canvas = new Canvas(result);
- Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
- paint.setStyle(Paint.Style.FILL);
- canvas.drawRoundRect(new RectF(0, 0, width, height), rx, ry, paint);
- paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
- canvas.drawBitmap(thumb, 0, 0, paint);
- return result;
- }
-
public boolean isUriValid() {
if (mUri == null) return false;
try {