C# Класс HermitDaveControls.ColorSpace

Показать файл Открыть проект

Открытые методы

Метод Описание
ConvertHsvToRgb ( float hue, float saturation, float value ) : Color
ConvertRgbToHsv ( Color c ) : HSV

Converts from the Red/Green/Blue color space to the Hue/Sat/Val (HSV) color space. Algorithm ported from: http://www.codeproject.com/KB/recipes/colorspace1.aspx

GetBlackAndWhiteGradientBrush ( Orientation orientation ) : LinearGradientBrush
GetColorFromHueValue ( float position ) : Color
GetColorGradientBrush ( Orientation orientation ) : LinearGradientBrush
GetHexCode ( Color c ) : string

Приватные методы

Метод Описание
CreateGradientBrush ( Orientation orientation ) : LinearGradientBrush

Описание методов

ConvertHsvToRgb() публичный статический Метод

public static ConvertHsvToRgb ( float hue, float saturation, float value ) : Color
hue float
saturation float
value float
Результат Color

ConvertRgbToHsv() публичный статический Метод

Converts from the Red/Green/Blue color space to the Hue/Sat/Val (HSV) color space. Algorithm ported from: http://www.codeproject.com/KB/recipes/colorspace1.aspx
public static ConvertRgbToHsv ( Color c ) : HSV
c Color The color to convert.
Результат HSV

GetBlackAndWhiteGradientBrush() публичный статический Метод

public static GetBlackAndWhiteGradientBrush ( Orientation orientation ) : LinearGradientBrush
orientation Orientation
Результат Windows.UI.Xaml.Media.LinearGradientBrush

GetColorFromHueValue() публичный статический Метод

public static GetColorFromHueValue ( float position ) : Color
position float
Результат Color

GetColorGradientBrush() публичный статический Метод

public static GetColorGradientBrush ( Orientation orientation ) : LinearGradientBrush
orientation Orientation
Результат Windows.UI.Xaml.Media.LinearGradientBrush

GetHexCode() публичный статический Метод

public static GetHexCode ( Color c ) : string
c Color
Результат string