ColorUtilities.GetLuminance(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the luminance of a color in sRGB colorspace according to https://www.w3.org/TR/WCAG20/#relativeluminancedef
public static double GetLuminance (this System.Windows.Media.Color color);
static member GetLuminance : System.Windows.Media.Color -> double
<Extension()>
Public Function GetLuminance (color As Color) As Double
Parameters
- color
- Color
The color whose luminance is to be computed.
Returns
The luminance value of color
.