/// <summary>
        /// Convert from RGB to CIE
        /// </summary>
        /// <param name="col">Set Color</param>
        /// <returns></returns>
        public static CIELabColor FromRGB(Color col)
        {
            XYZColor xyz = XYZColor.FromRGB(col);

            return(ColorConverter.XYZToCIE_Lab(xyz));
        }
Пример #2
0
 /// <summary>
 /// Convert to HSV from RGB
 /// </summary>
 /// <param name="col">Set color</param>
 /// <returns></returns>
 public static HsvColor FromRGB(Color col)
 {
     return(ColorConverter.RGBtoHSV(col));
 }
 /// <summary>
 /// Convert  From XYZ to CIE
 /// </summary>
 /// <param name="xyz">XYZ</param>
 /// <returns></returns>
 public static CIELabColor FromXYZ(XYZColor xyz)
 {
     return(ColorConverter.XYZToCIE_Lab(xyz));
 }