private void ExecuteContrast(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Boolean>(attribute);
}
if (arguments.Count == 0)
image.Contrast();
else if (OnlyContains(arguments, "enhance"))
image.Contrast((Boolean)arguments["enhance"]);
else
throw new ArgumentException("Invalid argument combination for 'contrast', allowed combinations are: [] [enhance]");
}
private void ExecuteContrastStretch(XmlElement element, MagickImage image)