summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Koch <akoch@google.com> 2013-03-05 06:33:56 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2013-03-05 06:33:56 -0800
commit0c8dfd7d281d037df3d427ccb6bf4642b2617a63 (patch)
tree273781ea5a8c29e19fd1a3552bca30b174f65d19
parent2048fbb1106a639c6b66298b94ab98eb4c650542 (diff)
parent1061c578b1a341ecb7286009daa9173e0b7e0dc0 (diff)
am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev
* commit '1061c578b1a341ecb7286009daa9173e0b7e0dc0': Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
-rw-r--r--graphics/java/android/graphics/BitmapFactory.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/graphics/java/android/graphics/BitmapFactory.java b/graphics/java/android/graphics/BitmapFactory.java
index 381e65bfc7d9..c2cd34bb09a1 100644
--- a/graphics/java/android/graphics/BitmapFactory.java
+++ b/graphics/java/android/graphics/BitmapFactory.java
@@ -88,9 +88,8 @@ public class BitmapFactory {
* pixel in the decoded bitmap. For example, inSampleSize == 4 returns
* an image that is 1/4 the width/height of the original, and 1/16 the
* number of pixels. Any value <= 1 is treated the same as 1. Note: the
- * decoder will try to fulfill this request, but the resulting bitmap
- * may have different dimensions that precisely what has been requested.
- * Also, powers of 2 are often faster/easier for the decoder to honor.
+ * decoder uses a final value based on powers of 2, any other value will
+ * be rounded down to the nearest power of 2.
*/
public int inSampleSize;