Skip to content

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

NameSummary
static ToBrushCreates a SolidColorBrush from a Color.
static GetLuminanceGets Color luminance based on HSL space.
static GetBrightnessGets Color brightness based on HSV space.
static GetHueGets Color hue based on HSV space.
static GetSaturationGets Color saturation based on HSV space.
static UpdateLuminanceAllows to change the luminance by a factor based on the HSL color space.
static UpdateSaturationAllows to change the saturation by a factor based on the HSL color space.
static UpdateBrightnessAllows to change the brightness by a factor based on the HSV color space.
static UpdateAllows to change the brightness, saturation and luminance by a factors based on the HSL and HSV color space.
static ToHslHSL 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 ToHsvHSV representation models how colors appear under light.
static FromHslToRgbConverts the color values stored as HSL to RGB.
static FromHsvToRgbConverts the color values stored as HSV (HSB) to RGB.
Inherited members