23 references to GetBrightness
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1298if (highlight.GetBrightness() < .5)
System\Windows\Forms\Rendering\ControlPaint.cs (8)
383internal static bool IsDark(Color color) => color.GetBrightness() <= .5; 1516float intensity = backColor.GetBrightness(); 1790if (backColor.GetBrightness() < .5) 2075=> color.GetBrightness() < .5 ? darkROP : lightROP; 2082Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark; 2133|| (!highContrast && t_focusPenColor.GetBrightness() <= .5 && baseColor.GetBrightness() <= .5) 2212Color brushColor = backColor.GetBrightness() <= .5 ? SystemColors.ControlLight : SystemColors.ControlDark;
System.Windows.Forms.Design (14)
System\Drawing\Design\ColorEditor.StandardColorComparer.cs (4)
48if (left.GetBrightness() < right.GetBrightness()) 53if (left.GetBrightness() > right.GetBrightness())
System\Windows\Forms\Design\DesignerUtils.cs (3)
191if (backColor != Color.Empty && backColor.GetBrightness() < .5) 215if (backColor != Color.Empty && backColor.GetBrightness() < .5) 229if (backColor != Color.Empty && backColor.GetBrightness() < .5)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
441if (backColor != Color.Empty && backColor.GetBrightness() < .5)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
426if (backColor.GetBrightness() < .5)
System\Windows\Forms\Design\PanelDesigner.cs (1)
72Color penColor = Control.BackColor.GetBrightness() < .5 ?
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
38if (ctl.BackColor.GetBrightness() < .5)
System\Windows\Forms\Design\SplitterDesigner.cs (1)
31Color penColor = control.BackColor.GetBrightness() < .5 ? Color.White : Color.Black;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
149Color penColor = control.BackColor.GetBrightness() < .5 ? ControlPaint.Light(control.BackColor) : ControlPaint.Dark(control.BackColor);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
46Color penColor = Control.BackColor.GetBrightness() < .5 ?