ColorSpaces
object ColorSpaces
kotlin.Any | |
↳ | androidx.compose.ui.graphics.colorspace.ColorSpaces |
Summary
Public methods | |
---|---|
ColorSpace? |
match(@Size(9) toXYZD50: FloatArray, function: TransferParameters) Returns a ColorSpaces instance of ColorSpace that matches the specified RGB to CIE XYZ transform and transfer functions. |
Properties | |
---|---|
Rgb |
RGB color space ACES standardized as SMPTE ST 2065-1:2012. |
Rgb |
RGB color space ACEScg standardized as Academy S-2014-004. |
Rgb |
RGB color space Adobe RGB (1998). |
Rgb |
RGB color space BT. |
Rgb |
RGB color space BT. |
ColorSpace |
Lab color space CIE Lab*. |
ColorSpace |
XYZ color space CIE XYZ. |
Rgb |
RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007. |
Rgb |
RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2. |
Rgb |
RGB color space scRGB-nl standardized as IEC 61966-2-2:2003. |
Rgb |
RGB color space scRGB standardized as IEC 61966-2-2:2003. |
Rgb |
RGB color space sRGB standardized as IEC 61966-2. |
Rgb |
RGB color space NTSC, 1953 standard. |
Rgb |
RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013. |
Rgb |
RGB color space SMPTE C. |
Rgb |
RGB color space sRGB standardized as IEC 61966-2. |
Public methods
match
fun match(
@Size(9) toXYZD50: FloatArray,
function: TransferParameters
): ColorSpace?
Returns a ColorSpaces instance of ColorSpace that matches the specified RGB to CIE XYZ transform and transfer functions. If no instance can be found, this method returns null.
The color transform matrix is assumed to target the CIE XYZ space a D50 standard illuminant.
Parameters | |
---|---|
toXYZD50: FloatArray | 3x3 column-major transform matrix from RGB to the profile connection space CIE XYZ as an array of 9 floats, cannot be null |
function: TransferParameters | Parameters for the transfer functions |
Return | |
---|---|
A non-null | ColorSpace if a match is found, null otherwise |
Properties
Aces
val Aces: Rgb
RGB color space ACES standardized as SMPTE ST 2065-1:2012. See details on ACES color space
Acescg
val Acescg: Rgb
RGB color space ACEScg standardized as Academy S-2014-004. See details on ACEScg color space
AdobeRgb
val AdobeRgb: Rgb
RGB color space Adobe RGB (1998). See details on Adobe RGB (1998) color space
Bt2020
val Bt2020: Rgb
RGB color space BT.2020 standardized as Rec. ITU-R BT.2020-1. See details on BT.2020 color space
Bt709
val Bt709: Rgb
RGB color space BT.709 standardized as Rec. ITU-R BT.709-5. See details on BT.709 color space
CieLab
val CieLab: ColorSpace
Lab color space CIE Lab*. This color space uses CIE XYZ D50 as a profile conversion space.
| Property | Value | |-------------------------|---------------------------------------------------------| | Name | Generic L*a*b* | | CIE standard illuminant | [D50][Illuminant.D50] | | Range | (L: `[0.0, 100.0]`, a: `[-128, 128]`, b: `[-128, 128]`) |
CieXyz
val CieXyz: ColorSpace
XYZ color space CIE XYZ. This color space assumes standard illuminant D50 as its white point.
| Property | Value | |-------------------------|-----------------------| | Name | Generic XYZ | | CIE standard illuminant | [D50][Illuminant.D50] | | Range | `[-2.0, 2.0]` |
DciP3
val DciP3: Rgb
RGB color space DCI-P3 standardized as SMPTE RP 431-2-2007. See details on DCI-P3 color space
DisplayP3
val DisplayP3: Rgb
RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999. See details on Display P3 color space
ExtendedSrgb
val ExtendedSrgb: Rgb
RGB color space scRGB-nl standardized as IEC 61966-2-2:2003. See details on Extended sRGB color space
LinearExtendedSrgb
val LinearExtendedSrgb: Rgb
RGB color space scRGB standardized as IEC 61966-2-2:2003. See details on Linear Extended sRGB color space
LinearSrgb
val LinearSrgb: Rgb
RGB color space sRGB standardized as IEC 61966-2.1:1999. See details on Linear sRGB color space
Ntsc1953
val Ntsc1953: Rgb
RGB color space NTSC, 1953 standard. See details on NTSC 1953 color space
ProPhotoRgb
val ProPhotoRgb: Rgb
RGB color space ProPhoto RGB standardized as ROMM RGB ISO 22028-2:2013. See details on ProPhoto RGB color space
Srgb
val Srgb: Rgb
RGB color space sRGB standardized as IEC 61966-2.1:1999. See details on sRGB color space