private void ExecuteBorder(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
arguments[attribute.Name] = Variables.GetValue<Int32>(attribute);
}
if (OnlyContains(arguments, "size"))
image.Border((Int32)arguments["size"]);
else if (OnlyContains(arguments, "width", "height"))
image.Border((Int32)arguments["width"], (Int32)arguments["height"]);
else
throw new ArgumentException("Invalid argument combination for 'border', allowed combinations are: [size] [width, height]");
}
private void ExecuteBrightnessContrast(XmlElement element, MagickImage image)