summaryrefslogtreecommitdiff
path: root/graphics/java
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-02-15 04:40:08 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-02-15 04:40:08 +0000
commitc04886e8aa23590828e54407584a80c7a7d78afd (patch)
tree8e93cbdbb631ff1899cbb950730be3d47015cef2 /graphics/java
parent3a5211e74427d2be0a826a7f107b5247252609e6 (diff)
parent9167126a4cebbd4d30ffbbd5ed81a5a50e7241e2 (diff)
Merge "Added additional documentation to Bitmap#getScaledWidth, Bitmap#getScaledHeight"
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Bitmap.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java
index bdb63643f615..81356710cce6 100644
--- a/graphics/java/android/graphics/Bitmap.java
+++ b/graphics/java/android/graphics/Bitmap.java
@@ -1509,6 +1509,9 @@ public final class Bitmap implements Parcelable {
* Convenience method that returns the width of this bitmap divided
* by the density scale factor.
*
+ * Returns the bitmap's width multiplied by the ratio of the target density to the bitmap's
+ * source density
+ *
* @param targetDensity The density of the target canvas of the bitmap.
* @return The scaled width of this bitmap, according to the density scale factor.
*/
@@ -1520,6 +1523,9 @@ public final class Bitmap implements Parcelable {
* Convenience method that returns the height of this bitmap divided
* by the density scale factor.
*
+ * Returns the bitmap's height multiplied by the ratio of the target density to the bitmap's
+ * source density
+ *
* @param targetDensity The density of the target canvas of the bitmap.
* @return The scaled height of this bitmap, according to the density scale factor.
*/