C# Class FirstFloor.ModernUI.Helpers.ColorExtension

Exibir arquivo Open project: gro-ove/actools

Public Methods

Method Description
FromHsb ( double hue, double saturation, double value ) : System.Windows.Media.Color
GetBrightness ( this c ) : double
GetHue ( this c ) : double
GetSaturation ( this c ) : double
ToColor ( this color ) : System.Drawing.System.Windows.Media.Color
ToColor ( this color ) : System.Windows.Media.Color
ToHexString ( this color, bool alphaChannel = false ) : string

Private Methods

Method Description
Clamp ( double i ) : byte
ToColor ( this s ) : Color?

Method Details

FromHsb() public static method

public static FromHsb ( double hue, double saturation, double value ) : System.Windows.Media.Color
hue double
saturation double
value double
return System.Windows.Media.Color

GetBrightness() public static method

public static GetBrightness ( this c ) : double
c this
return double

GetHue() public static method

public static GetHue ( this c ) : double
c this
return double

GetSaturation() public static method

public static GetSaturation ( this c ) : double
c this
return double

ToColor() public static method

public static ToColor ( this color ) : System.Drawing.System.Windows.Media.Color
color this
return System.Drawing.System.Windows.Media.Color

ToColor() public static method

public static ToColor ( this color ) : System.Windows.Media.Color
color this
return System.Windows.Media.Color

ToHexString() public static method

public static ToHexString ( this color, bool alphaChannel = false ) : string
color this
alphaChannel bool
return string