private void ExecuteClamp(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Channels>(attribute);
}
if (arguments.Count == 0)
image.Clamp();
else if (OnlyContains(arguments, "channels"))
image.Clamp((Channels)arguments["channels"]);
else
throw new ArgumentException("Invalid argument combination for 'clamp', allowed combinations are: [] [channels]");
}
private void ExecuteClip(XmlElement element, MagickImage image)