private void ExecuteSketch(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<double>(attribute);
}
if (arguments.Count == 0)
image.Sketch();
else if (OnlyContains(arguments, "radius", "sigma", "angle"))
image.Sketch((double)arguments["radius"], (double)arguments["sigma"], (double)arguments["angle"]);
else
throw new ArgumentException("Invalid argument combination for 'sketch', allowed combinations are: [] [radius, sigma, angle]");
}
private void ExecuteSolarize(XmlElement element, MagickImage image)