ImageMagick.MagickScript.ExecutePathMoveToRel C# (CSharp) Method

ExecutePathMoveToRel() private method

private ExecutePathMoveToRel ( XmlElement element, Collection paths ) : void
element XmlElement
paths Collection
return void
    private void ExecutePathMoveToRel(XmlElement element, Collection<IPath> paths)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        if (attribute.Name == "coordinate")
          arguments["coordinate"] = Variables.GetValue<PointD>(attribute);
        else if (attribute.Name == "x")
          arguments["x"] = Variables.GetValue<double>(attribute);
        else if (attribute.Name == "y")
          arguments["y"] = Variables.GetValue<double>(attribute);
      }
      if (OnlyContains(arguments, "coordinate"))
        paths.Add(new PathMoveToRel((PointD)arguments["coordinate"]));
      else if (OnlyContains(arguments, "x", "y"))
        paths.Add(new PathMoveToRel((double)arguments["x"], (double)arguments["y"]));
      else
        throw new ArgumentException("Invalid argument combination for 'moveToRel', allowed combinations are: [coordinate] [x, y]");
    }
    private void ExecutePathQuadraticCurveToAbs(XmlElement element, Collection<IPath> paths)
MagickScript