private MagickImage ExecuteCombine(XmlElement element, MagickImageCollection collection)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Channels>(attribute);
}
if (arguments.Count == 0)
return collection.Combine();
else if (OnlyContains(arguments, "channels"))
return collection.Combine((Channels)arguments["channels"]);
else
throw new ArgumentException("Invalid argument combination for 'combine', allowed combinations are: [] [channels]");
}
private MagickImage ExecuteEvaluate(XmlElement element, MagickImageCollection collection)