Пример #1
0
 /// <summary>
 /// Converts <see cref="SRGB"/> to <see cref="RGB"/> structure.
 /// </summary>
 /// <param name="srgb">The color in <see cref="SRGB"/> color space.</param>
 /// <returns></returns>
 public static RGB ToRGB(SRGB srgb)
 {
     return(ToRGB(srgb.R, srgb.G, srgb.B));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SRGB"/> struct.
 /// </summary>
 /// <param name="srgb">The color in <see cref="SRGB"/> color space.</param>
 public SRGB(SRGB srgb) : this()
 {
     R = srgb.R;
     G = srgb.G;
     B = srgb.B;
 }