diff options
| author | Brad Fitzpatrick <bradfitz@android.com> | 2010-10-04 12:23:58 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2010-10-04 12:23:58 -0700 |
| commit | b12bfbd4df985041ab0e584ef5a746328baac038 (patch) | |
| tree | 4b14c65374ee1db8c8d6911fb1b90a7588e08d4a /graphics/java | |
| parent | 7de900f3629e53e1a05b8d5854cf0164446346ae (diff) | |
| parent | eb6e22f29ded58e7e51702c34878fd01e20ff802 (diff) | |
| download | frameworks_base-b12bfbd4df985041ab0e584ef5a746328baac038.zip frameworks_base-b12bfbd4df985041ab0e584ef5a746328baac038.tar.gz frameworks_base-b12bfbd4df985041ab0e584ef5a746328baac038.tar.bz2 | |
am eb6e22f2: Merge "Document Bitmap.createScaledBitmap" into gingerbread
Merge commit 'eb6e22f29ded58e7e51702c34878fd01e20ff802' into gingerbread-plus-aosp
* commit 'eb6e22f29ded58e7e51702c34878fd01e20ff802':
Document Bitmap.createScaledBitmap
Diffstat (limited to 'graphics/java')
| -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; |
