Esempio n. 1
0
 /// <summary>
 /// Corrects color saturation.
 /// </summary>
 /// <param name="rgb">sRGB structure</param>
 /// <param name="s">Saturation</param>
 /// <returns>RGB structure</returns>
 public static sRGB Saturation(sRGB rgb, float s)
 {
     return(Saturation(rgb.Red, rgb.Green, rgb.Blue, s));
 }
Esempio n. 2
0
 /// <summary>
 /// Calculates the brightness value in the standard RYY.
 /// </summary>
 /// <param name="rgb">sRGB structure</param>
 /// <returns>float precision floating point number</returns>
 public static float RYY(sRGB rgb)
 {
     return(RYY(rgb.Red, rgb.Green, rgb.Blue));
 }
Esempio n. 3
0
 /// <summary>
 /// Calculates the brightness value in the standard (PAL/NTC).
 /// </summary>
 /// <param name="rgb">RGB structure</param>
 /// <returns>float precision floating point number</returns>
 public static float PAL(sRGB rgb)
 {
     return(PAL(rgb.Red, rgb.Green, rgb.Blue));
 }
Esempio n. 4
0
 /// <summary>
 /// Calculates the brightness value in the standard HDTV.
 /// </summary>
 /// <param name="rgb">sRGB structure</param>
 /// <returns>float precision floating point number</returns>
 public static float HDTV(sRGB rgb)
 {
     return(HDTV(rgb.Red, rgb.Green, rgb.Blue));
 }
Esempio n. 5
0
 /// <summary>
 /// Calculates the average brightness value.
 /// </summary>
 /// <param name="rgb">sRGB structure</param>
 /// <returns>float precision floating point number</returns>
 public static float Average(sRGB rgb)
 {
     return(Average(rgb.Red, rgb.Green, rgb.Blue));
 }