Struct Lms
- Namespace
- SixLabors.ImageSharp.ColorSpaces
- Assembly
- SixLabors.ImageSharp.dll
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
public readonly struct Lms : IEquatable<Lms>
- Implements
- Inherited Members
Constructors
Lms(Vector3)
Initializes a new instance of the Lms struct.
public Lms(Vector3 vector)
Parameters
vectorVector3The vector representing the l, m, s components.
Lms(float, float, float)
Initializes a new instance of the Lms struct.
public Lms(float l, float m, float s)
Parameters
lfloatL represents the responsivity at long wavelengths.
mfloatM represents the responsivity at medium wavelengths.
sfloatS represents the responsivity at short wavelengths.
Properties
L
Gets the L long component.
public float L { get; }
Property Value
M
Gets the M medium component.
public float M { get; }
Property Value
S
Gets the S short component.
public float S { get; }
Property Value
Methods
Equals(Lms)
public bool Equals(Lms other)
Parameters
otherLms
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
ToVector3()
Returns a new Vector3 representing this instance.
public Vector3 ToVector3()
Returns
Operators
operator ==(Lms, Lms)
Compares two Lms objects for equality.
public static bool operator ==(Lms left, Lms right)
Parameters
leftLmsThe Lms on the left side of the operand.
rightLmsThe Lms on the right side of the operand.
Returns
- bool
True if the current left is equal to the
rightparameter; otherwise, false.
operator !=(Lms, Lms)
Compares two Lms objects for inequality.
public static bool operator !=(Lms left, Lms right)
Parameters
leftLmsThe Lms on the left side of the operand.
rightLmsThe Lms on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
rightparameter; otherwise, false.