devices/System.Drawing/System.Drawing.cs
/// <summary>
/// Gets the hue-saturation-lightness (HSL) lightness value for this System.Drawing.Color structure.
/// </summary>
/// <returns>The lightness of this System.Drawing.Color. The lightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.</returns>
Gets the hue-saturation-lightness (HSL) lightness value for this System.Drawing.Color structure.
Gets the hue - saturation - lightness ( HSL ) lightness value for this System . Drawing . Color structure .
public float GetBrightness()
        {
            float r = ((float)R / 255.0f);
            float g = ((float)G / 255.0f);
            float b = ((float)B / 255.0f);
            float max = r > b ? r : b;
            max = max > g ? max : g;
            return max;
        }
public float GetBrightness ( ) { float r = ( ( float ) R / 255.0f ) ; float g = ( ( float ) G / 255.0f ) ; float b = ( ( float ) B / 255.0f ) ; float max = r > b ? r : b ; max = max > g ? max : g ; return max ; }
Gets the hue-saturation-lightness (HSL) lightness value for this System.Drawing.Color structure.
Gets the hue - saturation - lightness ( HSL ) lightness value for this System . Drawing . Color structure .
The lightness of this System.Drawing.Color.
The lightness of this System . Drawing . Color .