ColorProfile

class ColorProfile(val name: String?, val red: Vector2, val green: Vector2, val blue: Vector2, val white: Vector2, val transfer: ColorTransfer, val icc: ByteArray? = null)(source)

A color profile, as described by an ICC profile: the chromaticities of the primaries and the white point, and the transfer function.

Constructors

Link copied to clipboard
constructor(name: String?, red: Vector2, green: Vector2, blue: Vector2, white: Vector2, transfer: ColorTransfer, icc: ByteArray? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the xy chromaticity of the blue primary

Link copied to clipboard

the xy chromaticity of the green primary

Link copied to clipboard

the ICC profile the color profile was read from, if any

Link copied to clipboard

The Linearity with the primaries and white point of this profile: Linearity.SRGB for sRGB, Linearity.DISPLAY_P3 for Display P3 or null for other color spaces. The transfer function is not compared.

Link copied to clipboard
val name: String?

the description of the profile, such as "Display P3"

Link copied to clipboard

the xy chromaticity of the red primary

Link copied to clipboard

the transfer function

Link copied to clipboard

the xy chromaticity of the white point

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String