Ejemplo n.º 1
0
        /// <summary>
        /// Converts a <see cref="Rgb"/> into a <see cref="CieXyz"/>
        /// </summary>
        /// <param name="color">The color to convert.</param>
        /// <returns>The <see cref="CieXyz"/></returns>
        public CieXyz ToCieXyz(Rgb color)
        {
            // Conversion
            LinearRgb linear = RgbToLinearRgbConverter.Convert(color);

            return(this.ToCieXyz(linear));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Converts a <see cref="Rgb"/> into a <see cref="LinearRgb"/>
        /// </summary>
        /// <param name="color">The color to convert.</param>
        /// <returns>The <see cref="LinearRgb"/></returns>
        public LinearRgb ToLinearRgb(Rgb color)
        {
            Guard.NotNull(color, nameof(color));

            // Conversion
            return(RgbToLinearRgbConverter.Convert(color));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Converts a <see cref="Rgb"/> into a <see cref="CieXyz"/>
        /// </summary>
        /// <param name="color">The color to convert.</param>
        /// <returns>The <see cref="CieXyz"/></returns>
        public CieXyz ToCieXyz(Rgb color)
        {
            Guard.NotNull(color, nameof(color));

            // Conversion
            LinearRgb linear = RgbToLinearRgbConverter.Convert(color);

            return(this.ToCieXyz(linear));
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Converts a <see cref="Rgb"/> into a <see cref="LinearRgb"/>
 /// </summary>
 /// <param name="color">The color to convert.</param>
 /// <returns>The <see cref="LinearRgb"/></returns>
 public LinearRgb ToLinearRgb(Rgb color)
 {
     // Conversion
     return(RgbToLinearRgbConverter.Convert(color));
 }