C# Class Business.RatingToColorConverter

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

Méthodes publiques

Méthode 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 méthode

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

ConvertBack() public méthode

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

HSBtoRGB() public static méthode

public static HSBtoRGB ( double hue, double saturation, double brightness ) : Color
hue double
saturation double
brightness double
Résultat Color