private void ExecuteSepiaTone(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Percentage>(attribute);
}
if (arguments.Count == 0)
image.SepiaTone();
else if (OnlyContains(arguments, "threshold"))
image.SepiaTone((Percentage)arguments["threshold"]);
else
throw new ArgumentException("Invalid argument combination for 'sepiaTone', allowed combinations are: [] [threshold]");
}
private void ExecuteSetArtifact(XmlElement element, MagickImage image)