private void ExecuteReduceNoise(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Int32>(attribute);
}
if (arguments.Count == 0)
image.ReduceNoise();
else if (OnlyContains(arguments, "order"))
image.ReduceNoise((Int32)arguments["order"]);
else
throw new ArgumentException("Invalid argument combination for 'reduceNoise', allowed combinations are: [] [order]");
}
private void ExecuteRegionMask(XmlElement element, MagickImage image)