/// <summary> /// Converts a <see cref="Hsv"/> into a <see cref="Rgb"/> /// </summary> /// <param name="color">The color to convert.</param> /// <returns>The <see cref="Rgb"/></returns> public Rgb ToRgb(Hsv color) { Guard.NotNull(color, nameof(color)); // Conversion return(HsvAndRgbConverter.Convert(color)); }
/// <summary> /// Converts a <see cref="CieXyz"/> into a <see cref="Hsv"/> /// </summary> /// <param name="color">The color to convert.</param> /// <returns>The <see cref="Hsv"/></returns> public Hsv ToHsv(CieXyz color) { Guard.NotNull(color, nameof(color)); var rgb = this.ToRgb(color); return(HsvAndRgbConverter.Convert(rgb)); }
/// <summary> /// Converts a <see cref="Hsv"/> into a <see cref="Rgb"/> /// </summary> /// <param name="color">The color to convert.</param> /// <returns>The <see cref="Rgb"/></returns> public Rgb ToRgb(Hsv color) { // Conversion return(HsvAndRgbConverter.Convert(color)); }
/// <summary> /// Converts a <see cref="CieXyz"/> into a <see cref="Hsv"/> /// </summary> /// <param name="color">The color to convert.</param> /// <returns>The <see cref="Hsv"/></returns> public Hsv ToHsv(CieXyz color) { var rgb = this.ToRgb(color); return(HsvAndRgbConverter.Convert(rgb)); }