Class ControlPaint
Provides methods used to paint common controls and their elements.
public static class ControlPaint
- Inheritance
-
ControlPaint
Properties
- Handler
Gets or sets current control painter handler.
Methods
- Dark(ColorStruct)
Creates a new darker color from the specified color.
- Dark(ColorStruct, float)
Creates a new darker color from the specified color.
- DarkDark(ColorStruct)
Creates a new much darker color from the specified color.
- DrawBorder(Graphics, RectD, Color, ButtonBorderStyle)
Draws a border with the specified style and color, on the specified canvas, and within the specified bounds.
- IsDark(Color)
Returns True if is dark (it's brightness is less than 0.5).
- IsDarker(Color, Color)
Returns true if the luminosity of
c1
is less thanc2
.
- Light(ColorStruct)
Creates a new lighter color from the specified color.
- Light(ColorStruct, float)
Creates a new lighter color from the specified color.
- LightLight(ColorStruct)
Creates a new much lighter color from the specified color.