コード例 #1
0
        /// <summary>
        /// Converts a <see cref="Cmyk"/> into a <see cref="Rgb"/>
        /// </summary>
        /// <param name="color">The color to convert.</param>
        /// <returns>The <see cref="Rgb"/></returns>
        public Rgb ToRgb(Cmyk color)
        {
            Guard.NotNull(color, nameof(color));

            // Conversion
            return(CmykAndRgbConverter.Convert(color));
        }
コード例 #2
0
 /// <summary>
 /// Converts a <see cref="Cmyk"/> into a <see cref="Rgb"/>
 /// </summary>
 /// <param name="color">The color to convert.</param>
 /// <returns>The <see cref="Rgb"/></returns>
 public Rgb ToRgb(Cmyk color)
 {
     // Conversion
     return(CmykAndRgbConverter.Convert(color));
 }