diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-10-04 10:52:18 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@android.com> | 2010-10-04 10:52:18 -0700 |
commit | 02d9102b3bdebac6989c2b7d12c080fb7c1f8e2b (patch) | |
tree | b876a787ce1cbd6e91b598c9e313e16ec334ec33 | |
parent | 106950f20bd352ed72ddf4490b2e19d305e36a74 (diff) | |
download | frameworks_base-02d9102b3bdebac6989c2b7d12c080fb7c1f8e2b.zip frameworks_base-02d9102b3bdebac6989c2b7d12c080fb7c1f8e2b.tar.gz frameworks_base-02d9102b3bdebac6989c2b7d12c080fb7c1f8e2b.tar.bz2 |
Document Bitmap.createScaledBitmap
Change-Id: Ife6a42bc08d17c56274e78a1f5d2c100c2fe4dc8
-rw-r--r-- | graphics/java/android/graphics/Bitmap.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index 7ca3741..dd83c3b 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; |