ImageMagick.MagickScript.ExecutePathLineToAbs C# (CSharp) Method

ExecutePathLineToAbs() private method

private ExecutePathLineToAbs ( XmlElement element, Collection paths ) : void
element XmlElement
paths Collection
return void
    private void ExecutePathLineToAbs(XmlElement element, Collection<IPath> paths)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        arguments[attribute.Name] = Variables.GetValue<double>(attribute);
      }
      foreach (XmlElement elem in element.SelectNodes("*"))
      {
        arguments[elem.Name] = CreatePointDs(elem);
      }
      if (OnlyContains(arguments, "coordinates"))
        paths.Add(new PathLineToAbs((IEnumerable<PointD>)arguments["coordinates"]));
      else if (OnlyContains(arguments, "x", "y"))
        paths.Add(new PathLineToAbs((double)arguments["x"], (double)arguments["y"]));
      else
        throw new ArgumentException("Invalid argument combination for 'lineToAbs', allowed combinations are: [coordinates] [x, y]");
    }
    private void ExecutePathLineToHorizontalAbs(XmlElement element, Collection<IPath> paths)
MagickScript