Class PrelimColor
Defines the preliminary color space Used for calculated relative luminance.
Inheritance
System.Object
PrelimColor
Inherited Members
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: Phoenix.Tiresias
Assembly: Phoenix.Plugin.Tiresias.dll
Syntax
public class PrelimColor
Constructors
View SourcePrelimColor(Color)
Initializes a new instance of the PrelimColor class.
Declaration
public PrelimColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | color | a single color represented by RGB values. |
Methods
View SourceCalcRelativeLuminance()
Calculates Relative Luminance to be used to find the Contrast Ratio https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef.
Declaration
public void CalcRelativeLuminance()
GetRelativeLuminance()
Gets calculated relative luminance value.
Declaration
public double GetRelativeLuminance()
Returns
Type | Description |
---|---|
System.Double | Relative luminance value. |