summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-10-04 14:28:35 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-10-04 14:28:35 -0700
commit5e9f64ce24b3381ee48f9e12242aba5216f136a4 (patch)
treeac7927dfffdba579d7fc43768cee76c9ebcfe002 /graphics
parenta143e83e1e179ee587540150989cdfd220923f96 (diff)
parentb12bfbd4df985041ab0e584ef5a746328baac038 (diff)
downloadframeworks_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.java9
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;