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