1 write to Luminosity
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (1)
42
Luminosity
= ((sum * HLSMax) + RGBMax) / (2 * RGBMax);
10 references to Luminosity
System.Windows.Forms (10)
System\Windows\Forms\Rendering\ControlPaint.cs (4)
388
internal static bool IsDarker(Color c1, Color c2) => new HLSColor(c1).
Luminosity
< new HLSColor(c2).
Luminosity
;
2420
if (Math.Abs(pixelColorWrapper.
Luminosity
- backgroundColorWrapper.
Luminosity
) > MaximumLuminosityDifference)
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (6)
54
_saturation =
Luminosity
<= (HLSMax / 2)
136
&&
Luminosity
== other.
Luminosity
144
public override int GetHashCode() => HashCode.Combine(_hue, _saturation,
Luminosity
);
173
int zeroLum =
Luminosity
;
181
return NewLuma(
Luminosity
, n, scale);