diff options
author | 2019-02-20 17:55:44 +0000 | |
---|---|---|
committer | 2019-02-20 17:55:44 +0000 | |
commit | 7b8c60e0a7a6435dce89fd87ce2400e64e8e1e95 (patch) | |
tree | dfa458c05d4dcb7663ab1fb72b447533b0df40be /graphics/java | |
parent | bc2eea9aff960d6e1cb088121cce048ec90538b9 (diff) | |
parent | 97783ad1c10af3c3c630f868e929dc7e3e901d27 (diff) |
Merge "Make Bitmap#copy docs more accurate"
Diffstat (limited to 'graphics/java')
-rw-r--r-- | graphics/java/android/graphics/Bitmap.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/Bitmap.java b/graphics/java/android/graphics/Bitmap.java index 81356710cce6..8d3bac8622f6 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. |