Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ec622be

Browse files
committed
docstring tweaks
1 parent 3eb3938 commit ec622be

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

lib/ui/painting.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,12 +1568,12 @@ class Paint {
15681568
}
15691569
}
15701570

1571-
/// The color space that an [Image] uses.
1571+
/// The color space in which all of an [Image]'s colors exist.
15721572
///
15731573
/// This value can help you decide which [ImageByteFormat] to use with
1574-
/// [Image.toByteData];
1574+
/// [Image.toByteData] and is the result of [Image.colorSpace].
15751575
enum ColorSpace {
1576-
/// The sRGB color gamut, the defined standard color gamut for the web.
1576+
/// The sRGB color space, the defined standard color space for the web.
15771577
sRGB,
15781578
/// A color space that is backwards compatible with sRGB but can represent
15791579
/// colors outside of that gamut with values outside of [0..1]. In order to
@@ -1766,7 +1766,12 @@ class Image {
17661766
return _image.toByteData(format: format);
17671767
}
17681768

1769-
/// The color space that used by the [Image]'s colors.
1769+
/// The color space that is used by the [Image]'s colors.
1770+
///
1771+
/// This value is a consequence of how the [Image] has been created. For
1772+
/// example, loading a PNG that is in the Display P3 color space will result
1773+
/// in a [ColorSpace.extendedSRGB] image.
1774+
///
17701775
/// On certain platforms/rendering backends, wide gamut images will still
17711776
/// report [ColorSpace.sRGB] if rendering wide gamut colors isn't supported.
17721777
ColorSpace get colorSpace {

0 commit comments

Comments
 (0)