private void ExecuteAutoLevel(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.AutoLevel();
else if (OnlyContains(arguments, "channels"))
image.AutoLevel((Channels)arguments["channels"]);
else
throw new ArgumentException("Invalid argument combination for 'autoLevel', allowed combinations are: [] [channels]");
}
private static void ExecuteAutoOrient(MagickImage image)