Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3882ad8 authored by Leon Scroggins's avatar Leon Scroggins Committed by Android (Google) Code Review
Browse files

Merge "Explain why Bitmap#setColorSpace is @NonNull"

parents 535616e2 4580ae12
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1718,6 +1718,11 @@ public final class Bitmap implements Parcelable {
     * <p>Modifies the bitmap to have the specified {@link ColorSpace}, without
     * affecting the underlying allocation backing the bitmap.</p>
     *
     * <p>This affects how the framework will interpret the color at each pixel. A bitmap
     * with {@link Config#ALPHA_8} never has a color space, since a color space does not
     * affect the alpha channel. Other {@code Config}s must always have a non-null
     * {@code ColorSpace}.</p>
     *
     * @throws IllegalArgumentException If the specified color space is {@code null}, not
     *         {@link ColorSpace.Model#RGB RGB}, has a transfer function that is not an
     *         {@link ColorSpace.Rgb.TransferParameters ICC parametric curve}, or whose