ColorCMYK
Represents 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.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
[SerializableAttribute]public struct ColorCMYK
The ColorCMYK type exposes the following members.
Constructors
Name
Description
Public Method
ColorCMYK(Color)
Initializes a new instance of ColorCMYK that is equivalent to an ARGB color.
Public Method
ColorCMYK(Double, Double, Double)
Initializes a new instance of ColorCMYK with custom channel values. The cyan, magenta and yellow values will be adjusted based on their combined darkness.
Public Method
ColorCMYK(Double, Double, Double, Double)
Initializes a new instance of ColorCMYK with custom channel values.
Public Method
ColorCMYK(Double, Double, Double, Double, Double)
Initializes a new instance of ColorCMYK with custom channel values.
Properties
Name
Description
Public Property
A
Gets or sets the Alpha channel value. Alpha channels are limited to the 0~1 range.
Public Property
C
Gets or sets the Cyan channel value. Cyan channels are limited to the 0~1 range.
Public Property
K
Gets or sets the Key channel value. Key channels are limited to the 0~1 range.
Public Property
M
Gets or sets the Magenta channel value. Magenta channels are limited to the 0~1 range.
Public Property
Y
Gets or sets the Yellow channel value. Yellow channels are limited to the 0~1 range.
Methods
Name
Description
Public Method
Static Member
CreateFromHSL
Constructs the nearest CMYK equivalent of an HSL color.
Public Method
Static Member
CreateFromHSV
Constructs the nearest CMYK equivalent of an HSV color.
Public Method
Static Member
CreateFromLAB
Constructs the nearest CMYK equivalent of a LAB color.
Public Method
Static Member
CreateFromLCH
Constructs the nearest CMYK equivalent of a LCH color.
Public Method
Static Member
CreateFromRGBA
Create the nearest CMYK equivalent of a RGBA color.
Public Method
Static Member
CreateFromXYZ
Constructs the nearest CMYK equivalent of an XYZ color.
Public Method
Equals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public Method
GetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
ToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Operators
Name
Description
Public Operator
Static Member
.(ColorCMYK to Color)
Implicitly converts a CMYK color into a .Net library color.