ColorCMYK
ReferencesRepresents a CMYK (Cyan, Magenta, Yellow, Key) color with double precision floating point channels. CMYK colors are used primarily in printing environments as they provide a good simulation of physical ink.
Constructors
Initializes a new instance of ColorCMYK that is equivalent to an ARGB color.
Remarks: Exact conversions between color spaces are often not possible.
Initializes a new instance of ColorCMYK with custom channel values.
public ColorCMYK()
alpha,
Alpha channel value. Alpha channels are limited to the 0.0 and 1.0 range.
cyan,
Cyan channel value. Cyan channels are limited to the 0.0 and 1.0 range.
magenta,
Magenta channel value. Magenta channels are limited to the 0.0 and 1.0 range.
yellow,
Yellow channel value. Yellow channels are limited to the 0.0 and 1.0 range.
key
Key channel value. Key channels are limited to the 0.0 and 1.0 range.
Initializes a new instance of ColorCMYK with custom channel values.
public ColorCMYK()
cyan,
Cyan channel value. Cyan channels are limited to the 0.0 and 1.0 range.
magenta,
Magenta channel value. Magenta channels are limited to the 0.0 and 1.0 range.
yellow,
Yellow channel value. Yellow channels are limited to the 0.0 and 1.0 range.
key
Key channel value. Key channels are limited to the 0.0 and 1.0 range.
Properties
Gets or sets the Alpha channel value. Alpha channels are limited to the 0~1 range.
Gets or sets the Cyan channel value. Cyan channels are limited to the 0~1 range.
Gets or sets the Key channel value. Key channels are limited to the 0~1 range.
Gets or sets the Magenta channel value. Magenta channels are limited to the 0~1 range.
Methods
Constructs the nearest CMYK equivalent of an HSL color.
Returns: The CMYK equivalent of the HSL color.
Constructs the nearest CMYK equivalent of an HSV color.
Returns: The CMYK equivalent of the HSV color.
Constructs the nearest CMYK equivalent of a LAB color.
Returns: The CMYK equivalent of the LAB color.
Constructs the nearest CMYK equivalent of a LCH color.
Returns: The CMYK equivalent of the LCH color.
Create the nearest CMYK equivalent of a RGBA color.
Returns: The CMYK equivalent of the RGBA color.