[]
        
(Showing Draft Content)

C1.WPF.ColorEx

ColorEx Class

Provides access to system colors according to the current theme.

Inheritance
ColorEx
Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
public static class ColorEx

Methods

Name Description
Blend(Brush, Brush, double)

Blends the specified colors together.

FromARGB(byte, byte, byte, byte)

Creates a color from the ARGB components.

GetARGB(Brush, out byte, out byte, out byte, out byte)

Gets the ARGB components of a color.

GetIntColor(object)

Convert color in platforms to a int color.

HSVtoRGB(out float, out float, out float, float, float, float)

r,g,b values are from 0 to 1 h = [0,360], s = [0,1], v = [0,1] if s == 0, then h = -1(undefined)

IsDefaultColor(Brush)

Determines whether the specified color is the default color.

RGBtoHSV(float, float, float, out float, out float, out float)

r,g,b values are from 0 to 1 h = [0,360], s = [0,1], v = [0,1] if s == 0, then h = -1(undefined)

WithAlpha(Brush, byte)

Creates a new color modifying the alpha channel.