Esempio n. 1
0
 /// <summary>
 /// Convert from RGB to XYZ
 /// </summary>
 /// <param name="R">Set Red value</param>
 /// <param name="G">Set Green value</param>
 /// <param name="B">Set Blue value</param>
 /// <returns></returns>
 public static XYZColor FromRGB(float R, float G, float B)
 {
     return(ColorConverter.RGBToXYZ(R, G, B));
 }
Esempio n. 2
0
 /// <summary>
 /// Convert from RGB to XYZ
 /// </summary>
 /// <param name="col">Set RGB color</param>
 /// <returns></returns>
 public static XYZColor FromRGB(Color col)
 {
     return(ColorConverter.RGBToXYZ(col));
 }