C# Class Business.RatingToColorConverter

Converts ratings into a color ranging from 0.0 = Hue 180 (Cyan) to 11.0 = Hue 0 (Red).
Inheritance: IValueConverter
Show file Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
HSBtoRGB ( double hue, double saturation, double brightness ) : Color

Method Details

Convert() public method

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
return object

HSBtoRGB() public static method

public static HSBtoRGB ( double hue, double saturation, double brightness ) : Color
hue double
saturation double
brightness double
return Color