Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LCH"/> struct.
 /// </summary>
 /// <param name="lch">The color in <see cref="LCH"/> color space.</param>
 public LCH(LCH lch) : this()
 {
     L          = lch.L;
     C          = lch.C;
     H          = lch.H;
     ColorSpace = lch.ColorSpace;
 }
Esempio n. 2
0
 /// <summary>
 /// Converts from <see cref="LCH"/> (uv) to <see cref="LUV"/> color space.
 /// </summary>
 /// <param name="lch">The source color in<see cref="LCH"/> (uv) color space.</param>
 /// <returns>
 /// The color in <see cref="LUV"/> color space.
 /// </returns>
 public static LUV ToCIELuv(LCH lch)
 {
     return(ToCIELuv(lch.L, lch.C, lch.H));
 }
Esempio n. 3
0
 /// <summary>
 /// Converts from <see cref="LCH"/> (ab) to <see cref="LAB"/>  color space.
 /// </summary>
 /// <param name="lch">The source color <see cref="LCH"/> (ab) in color space.</param>
 /// <returns>
 /// The color in <see cref="LAB"/> color space.
 /// </returns>
 public static LAB ToCIELab(LCH lch)
 {
     return(ToCIELab(lch.L, lch.C, lch.H));
 }