Struct Lms
LMS is a color space represented by the response of the three types of cones of the human eye, named after their responsivity (sensitivity) at long, medium and short wavelengths. https://en.wikipedia.org/wiki/LMS_color_space
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct Lms : IEquatable<Lms>Constructors
| Improve this Doc View SourceLms(Vector3)
Initializes a new instance of the Lms struct.
Declaration
public Lms(Vector3 vector)Parameters
| Type | Name | Description | 
|---|---|---|
| Vector3 | vector | The vector representing the l, m, s components. | 
Lms(Single, Single, Single)
Initializes a new instance of the Lms struct.
Declaration
public Lms(float l, float m, float s)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | l | L represents the responsivity at long wavelengths. | 
| Single | m | M represents the responsivity at medium wavelengths. | 
| Single | s | S represents the responsivity at short wavelengths. | 
Fields
| Improve this Doc View SourceL
Gets the L long component.
Declaration
public readonly float LField Value
| Type | Description | 
|---|---|
| Single | 
M
Gets the M medium component.
Declaration
public readonly float MField Value
| Type | Description | 
|---|---|
| Single | 
S
Gets the S short component.
Declaration
public readonly float SField Value
| Type | Description | 
|---|---|
| Single | 
Methods
| Improve this Doc View SourceEquals(Lms)
Declaration
public readonly bool Equals(Lms other)Parameters
| Type | Name | Description | 
|---|---|---|
| Lms | other | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Equals(Object)
Declaration
public override readonly bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | 
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()Returns
| Type | Description | 
|---|---|
| String | 
Overrides
| Improve this Doc View SourceToVector3()
Returns a new Vector3 representing this instance.
Declaration
public readonly Vector3 ToVector3()Returns
| Type | Description | 
|---|---|
| Vector3 | The Vector3. | 
Operators
| Improve this Doc View SourceEquality(Lms, Lms)
Compares two Lms objects for equality.
Declaration
public static bool operator ==(Lms left, Lms right)Parameters
| Type | Name | Description | 
|---|---|---|
| Lms | left | The Lms on the left side of the operand. | 
| Lms | right | The Lms on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is equal to the  | 
Inequality(Lms, Lms)
Compares two Lms objects for inequality.
Declaration
public static bool operator !=(Lms left, Lms right)Parameters
| Type | Name | Description | 
|---|---|---|
| Lms | left | The Lms on the left side of the operand. | 
| Lms | right | The Lms on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is unequal to the  |