ImageMagick.MagickScript.ExecuteFrame C# (CSharp) Method

ExecuteFrame() private method

private ExecuteFrame ( XmlElement element, MagickImage image ) : void
element XmlElement
image MagickImage
return void
    private void ExecuteFrame(XmlElement element, MagickImage image)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        if (attribute.Name == "geometry")
          arguments["geometry"] = Variables.GetValue<MagickGeometry>(attribute);
        else if (attribute.Name == "height")
          arguments["height"] = Variables.GetValue<Int32>(attribute);
        else if (attribute.Name == "innerBevel")
          arguments["innerBevel"] = Variables.GetValue<Int32>(attribute);
        else if (attribute.Name == "outerBevel")
          arguments["outerBevel"] = Variables.GetValue<Int32>(attribute);
        else if (attribute.Name == "width")
          arguments["width"] = Variables.GetValue<Int32>(attribute);
      }
      if (arguments.Count == 0)
        image.Frame();
      else if (OnlyContains(arguments, "geometry"))
        image.Frame((MagickGeometry)arguments["geometry"]);
      else if (OnlyContains(arguments, "width", "height"))
        image.Frame((Int32)arguments["width"], (Int32)arguments["height"]);
      else if (OnlyContains(arguments, "width", "height", "innerBevel", "outerBevel"))
        image.Frame((Int32)arguments["width"], (Int32)arguments["height"], (Int32)arguments["innerBevel"], (Int32)arguments["outerBevel"]);
      else
        throw new ArgumentException("Invalid argument combination for 'frame', allowed combinations are: [] [geometry] [width, height] [width, height, innerBevel, outerBevel]");
    }
    private void ExecuteFx(XmlElement element, MagickImage image)
MagickScript