diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2010-10-04 14:28:35 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-10-04 14:28:35 -0700 |
commit | 5e9f64ce24b3381ee48f9e12242aba5216f136a4 (patch) | |
tree | ac7927dfffdba579d7fc43768cee76c9ebcfe002 /graphics | |
parent | a143e83e1e179ee587540150989cdfd220923f96 (diff) | |
parent | b12bfbd4df985041ab0e584ef5a746328baac038 (diff) | |
download | frameworks_base-5e9f64ce24b3381ee48f9e12242aba5216f136a4.zip frameworks_base-5e9f64ce24b3381ee48f9e12242aba5216f136a4.tar.gz frameworks_base-5e9f64ce24b3381ee48f9e12242aba5216f136a4.tar.bz2 |
am b12bfbd4: am eb6e22f2: Merge "Document Bitmap.createScaledBitmap" into gingerbread
Merge commit 'b12bfbd4df985041ab0e584ef5a746328baac038'
* commit 'b12bfbd4df985041ab0e584ef5a746328baac038':
Document Bitmap.createScaledBitmap
Diffstat (limited to 'graphics')
-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 9a19056..d283dea 100644 --- a/graphics/java/android/graphics/Bitmap.java +++ b/graphics/java/android/graphics/Bitmap.java @@ -346,6 +346,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; |