ColorXYZ
Represents an XYZ (Hue, Saturation, Luminance) color with double precision floating point channels. XYZ colors are based on the CIE 1931 XYZ color space standard and they mimic the natural sensitivity of cones in the human retina.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
[SerializableAttribute]public struct ColorXYZ
The ColorXYZ type exposes the following members.
Constructors
Name
Description
Public Method
ColorXYZ(Color)
Constructs a new instance of ColorXYZ that is equivalent to an ARGB color.
Public Method
ColorXYZ(Double, Double, Double)
Constructs a new instance of ColorXYZ with custom channel values.
Public Method
ColorXYZ(Double, Double, Double, Double)
Constructs a new instance of ColorXYZ with custom channel values.
Properties
Name
Description
Public Property
A
Gets or set the Alpha channel value. Channel will be limited to 0~1.
Public Property
X
Gets or set the X channel value. Channel will be limited to 0~1.
Public Property
Y
Gets or set the Y channel value. Channel will be limited to 0~1.
Public Property
Z
Gets or set the Z channel value. Channel will be limited to 0~1.
Methods
Name
Description
Public Method
Static Member
CreateFromCMYK
Create the nearest XYZ equivalent of a CMYK color.
Public Method
Static Member
CreateFromHSL
Create the nearest XYZ equivalent of an HSL color.
Public Method
Static Member
CreateFromHSV
Constructs the nearest XYZ equivalent of an HSV color.
Public Method
Static Member
CreateFromLAB
Create the nearest XYZ equivalent of a Lab color.
Public Method
Static Member
CreateFromLCH
Create the nearest XYZ equivalent of an LCH color.
Public Method
Static Member
CreateFromRGBA
Create the nearest XYZ equivalent of a RGBA 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
.(ColorXYZ to Color)
Implicitly converts a XYZ color into a .Net library color.