[]
Represents a color in HSL (hue, saturation, lightness) color model.
public struct HslColor : IEquatable<HslColor>
Public Structure HslColor
Implements IEquatable(Of HslColor)
Name | Description |
---|---|
HslColor(Color) | Initializes a new instance of the HslColor struct from a Color value. |
HslColor(int) | Initializes a new instance of the HslColor struct from a 32-bit ARGB value. |
HslColor(float, float, float, float) | Initializes a new instance of the HslColor struct. |
Name | Description |
---|---|
Hue | Gets or sets the hue value in the range [0, 360]. |
Lightness | Gets or sets the lightness value in the range [0, 1]. |
Opacity | Gets or sets the opacity value in the range [0, 1]. |
Saturation | Gets or sets the saturation value in the range [0, 1]. |
Name | Description |
---|---|
Equals(HslColor) | Determines whether the specified HslColor is equal to this instance. |
Equals(object) | Determines whether the specified object is equal to this instance. |
GetHashCode() | Returns a hash code for this struct. |
ToArgb() | Returns a 32-bit ARGB value that represents this HSL color. |
ToColor() | Returns a Color that represents this HSL color. |
ToString() | Returns a string representation of this HSL color. |
Name | Description |
---|---|
operator ==(HslColor, HslColor) | Tests whether two specified HslColor structures are equivalent. |
operator !=(HslColor, HslColor) | Tests whether two specified HslColor structures are different. |