ColorExtensions class¶
Defined in
Namespace: CrissCross.WPF.UI.Extensions
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Extensions.ColorExtensions
Modifiers: public static
Summary¶
Adds an extension for Color that allows manipulation with HSL and HSV color spaces.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Methods¶
| Name | Summary |
|---|---|
| static ToBrush | Creates a SolidColorBrush from a Color. |
| static GetLuminance | Gets Color luminance based on HSL space. |
| static GetBrightness | Gets Color brightness based on HSV space. |
| static GetHue | Gets Color hue based on HSV space. |
| static GetSaturation | Gets Color saturation based on HSV space. |
| static UpdateLuminance | Allows to change the luminance by a factor based on the HSL color space. |
| static UpdateSaturation | Allows to change the saturation by a factor based on the HSL color space. |
| static UpdateBrightness | Allows to change the brightness by a factor based on the HSV color space. |
| static Update | Allows to change the brightness, saturation and luminance by a factors based on the HSL and HSV color space. |
| static ToHsl | HSL representation models the way different paints mix together to create colour in the real world, with the lightness dimension resembling the varying amounts of black or white paint in... |
| static ToHsv | HSV representation models how colors appear under light. |
| static FromHslToRgb | Converts the color values stored as HSL to RGB. |
| static FromHsvToRgb | Converts the color values stored as HSV (HSB) to RGB. |