Example #1
0
 private static double ValidateSaturation(HsvProperties cp, double saturation)
 {
     if (saturation < 0.0 || saturation > 100.0)
     {
         throw new ArgumentException("Invalid Saturation value.");
     }
     return(saturation);
 }
Example #2
0
 private static double ValidateValue(HsvProperties cp, double value)
 {
     if (value < 0.0 || value > 100.0)
     {
         throw new ArgumentException("Invalid Value value.");
     }
     return(value);
 }
Example #3
0
 private static double ValidateHue(HsvProperties cp, double hue)
 {
     if (hue < 0.0 || hue > 360.0)
     {
         throw new ArgumentException("Invalid Hue value.");
     }
     return(hue);
 }