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
| Edit this page 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(float, float, float)
Initializes a new instance of the Lms struct.
Declaration
public Lms(float l, float m, float s)
Parameters
Type | Name | Description |
---|---|---|
float | l | L represents the responsivity at long wavelengths. |
float | m | M represents the responsivity at medium wavelengths. |
float | s | S represents the responsivity at short wavelengths. |
Properties
| Edit this page View SourceL
Gets the L long component.
Declaration
public float L { get; }
Property Value
Type | Description |
---|---|
float |
M
Gets the M medium component.
Declaration
public float M { get; }
Property Value
Type | Description |
---|---|
float |
S
Gets the S short component.
Declaration
public float S { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(Lms)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Lms other)
Parameters
Type | Name | Description |
---|---|---|
Lms | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
| Edit this page View SourceToVector3()
Returns a new Vector3 representing this instance.
Declaration
public Vector3 ToVector3()
Returns
Type | Description |
---|---|
Vector3 | The Vector3. |
Operators
| Edit this page View Sourceoperator ==(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 |
---|---|
bool | True if the current left is equal to the |
operator !=(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 |
---|---|
bool | True if the current left is unequal to the |