ConvertHsvToRgb() public static méthode

public static ConvertHsvToRgb ( double hue, double saturation, double value ) : Color
hue double
saturation double
value double
Résultat Color
Exemple #1
0
        private void UpdateSelectedColor()
        {
            var selectedColor = SelectedColor;
            var newColor      = ColorUtils.ConvertHsvToRgb(Hue, Saturation, Value);

            SelectedColor = newColor;
            ColorUtils.FireSelectedColorChangedEvent(this, SelectedColorChangedEvent, selectedColor, newColor);
        }
Exemple #2
0
 private void UpdateThumbPosition()
 {
     _mThumbTransform.X = Saturation * ActualWidth;
     _mThumbTransform.Y = (1.0 - Value) * ActualHeight;
     SelectedColor      = ColorUtils.ConvertHsvToRgb(Hue, Saturation, Value);
 }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var hue = (double)value;

            return(ColorUtils.ConvertHsvToRgb(hue, 1.0, 1.0));
        }