private static byte ValidateGreen(RgbProperties cp, byte green) { if (green < 0 || green > 255) { throw new ArgumentException("Invalid Green value."); } return(green); }
private static byte ValidateBlue(RgbProperties cp, byte blue) { if (blue < 0 || blue > 255) { throw new ArgumentException("Invalid Blue value."); } return(blue); }
private static byte ValidateRed(RgbProperties cp, byte red) { if (red < 0 || red > 255) { throw new ArgumentException("Invalid Red value."); } return(red); }