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
vector
Vector3The 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
l
floatL represents the responsivity at long wavelengths.
m
floatM represents the responsivity at medium wavelengths.
s
floatS 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
other
Lms
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
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
left
LmsThe Lms on the left side of the operand.
right
LmsThe Lms on the right side of the operand.
Returns
- bool
True if the current left is equal to the
right
parameter; otherwise, false.
operator !=(Lms, Lms)
Compares two Lms objects for inequality.
public static bool operator !=(Lms left, Lms right)
Parameters
left
LmsThe Lms on the left side of the operand.
right
LmsThe Lms on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
right
parameter; otherwise, false.