summaryrefslogtreecommitdiff
path: root/graphics/java
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2019-02-14 12:18:33 -0500
committer Leon Scroggins III <scroggo@google.com> 2019-02-14 12:18:33 -0500
commit97783ad1c10af3c3c630f868e929dc7e3e901d27 (patch)
tree2bff7793a7c7f160852e921662f32520f939435d /graphics/java
parent29405ed8c501f50247e7e4012b6da80bf51eb3b1 (diff)
Make Bitmap#copy docs more accurate
Bug: 121001670 Test: Only a documentation change. Since Ied0426f6deff354df5998691703a18ddd33ccd3d, we no longer always apply the ColorSpace to the copy. Change-Id: I67f486e5c69abb2dd767ac3f1b0da515f9f20e69
Diffstat (limited to 'graphics/java')
-rw-r--r--graphics/java/android/graphics/Bitmap.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java
index bdb63643f615..821cc0b0b914 100644
--- a/graphics/java/android/graphics/Bitmap.java
+++ b/graphics/java/android/graphics/Bitmap.java
@@ -652,7 +652,10 @@ public final class Bitmap implements Parcelable {
* setting the new bitmap's config to the one specified, and then copying
* this bitmap's pixels into the new bitmap. If the conversion is not
* supported, or the allocator fails, then this returns NULL. The returned
- * bitmap has the same density and color space as the original.
+ * bitmap has the same density and color space as the original, except in
+ * the following cases. When copying to {@link Config#ALPHA_8}, the color
+ * space is dropped. When copying to or from {@link Config#RGBA_F16},
+ * EXTENDED or non-EXTENDED variants may be adjusted as appropriate.
*
* @param config The desired config for the resulting bitmap
* @param isMutable True if the resulting bitmap should be mutable (i.e.