Class HLSColor
Defines a Hls color
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.IDataErrorInfo
System.ComponentModel.INotifyDataErrorInfo
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class HLSColor : ViewModelBase, INotifyPropertyChanged, IDataErrorInfo, INotifyDataErrorInfo, INotifyDataPropertyChanged, IActiveAware, IClosingAware, IBusyAware
Properties
View SourceA
gets or sets the alpha value
Declaration
public double A { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
H
gets or sets the hue value
Declaration
public double H { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
L
Gets or sets the luminance value
Declaration
public double L { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
S
Gets or sets the saturation value
Declaration
public double S { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceFromRGB(Color)
Converts a WPF RGB color to an HSL color
Declaration
public static HLSColor FromRGB(Color rgbColor)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.Color | rgbColor | The RGB color to convert. |
Returns
Type | Description |
---|---|
HLSColor | An HSL color object equivalent to the RGB color object passed in. |
ToRGB()
Converts a WPF HSL color to an RGB color
Declaration
public Color ToRGB()
Returns
Type | Description |
---|---|
System.Windows.Media.Color | An RGB color object equivalent to the HSL color object passed in. |
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.IDataErrorInfo
System.ComponentModel.INotifyDataErrorInfo