예제 #1
0
 private static double ValidateBlackKey(CmykProperties cp, double blackKey)
 {
     if (blackKey < 0.0 || blackKey > 100.0)
     {
         throw new ArgumentException("Invalid BlackKey value.");
     }
     return(blackKey);
 }
예제 #2
0
 private static double ValidateMagenta(CmykProperties cp, double magenta)
 {
     if (magenta < 0.0 || magenta > 100.0)
     {
         throw new ArgumentException("Invalid Magenta value.");
     }
     return(magenta);
 }
예제 #3
0
 private static double ValidateYellow(CmykProperties cp, double yellow)
 {
     if (yellow < 0.0 || yellow > 100.0)
     {
         throw new ArgumentException("Invalid Yellow value.");
     }
     return(yellow);
 }
예제 #4
0
 private static double ValidateCyan(CmykProperties cp, double cyan)
 {
     if (cyan < 0.0 || cyan > 100.0)
     {
         throw new ArgumentException("Invalid Cyan value.");
     }
     return(cyan);
 }