private void ExecuteClip(XmlElement element, MagickImage image)
{
Hashtable arguments = new Hashtable();
foreach (XmlAttribute attribute in element.Attributes)
{
if (attribute.Name == "inside")
arguments["inside"] = Variables.GetValue<Boolean>(attribute);
else if (attribute.Name == "pathName")
arguments["pathName"] = Variables.GetValue<String>(attribute);
}
if (arguments.Count == 0)
image.Clip();
else if (OnlyContains(arguments, "pathName", "inside"))
image.Clip((String)arguments["pathName"], (Boolean)arguments["inside"]);
else
throw new ArgumentException("Invalid argument combination for 'clip', allowed combinations are: [] [pathName, inside]");
}
private void ExecuteClut(XmlElement element, MagickImage image)