From 02d9102b3bdebac6989c2b7d12c080fb7c1f8e2b Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 4 Oct 2010 10:52:18 -0700 Subject: [PATCH] Document Bitmap.createScaledBitmap Change-Id: Ife6a42bc08d17c56274e78a1f5d2c100c2fe4dc8 --- graphics/java/android/graphics/Bitmap.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index 7ca374164096b..dd83c3bfafba4 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -319,6 +319,15 @@ public final class Bitmap implements Parcelable { return b; } + /** + * Creates a new bitmap, scaled from an existing bitmap. + * + * @param src The source bitmap. + * @param dstWidth The new bitmap's desired width. + * @param dstHeight The new bitmap's desired height. + * @param filter true if the source should be filtered. + * @return the new scaled bitmap. + */ public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter) { Matrix m;