ImageMagick.MagickScript.ExecutePathSmoothQuadraticCurveToAbs C# (CSharp) Method

ExecutePathSmoothQuadraticCurveToAbs() private method

private ExecutePathSmoothQuadraticCurveToAbs ( XmlElement element, Collection paths ) : void
element XmlElement
paths Collection
return void
    private void ExecutePathSmoothQuadraticCurveToAbs(XmlElement element, Collection<IPath> paths)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        if (attribute.Name == "end")
          arguments["end"] = 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, "end"))
        paths.Add(new PathSmoothQuadraticCurveToAbs((PointD)arguments["end"]));
      else if (OnlyContains(arguments, "x", "y"))
        paths.Add(new PathSmoothQuadraticCurveToAbs((double)arguments["x"], (double)arguments["y"]));
      else
        throw new ArgumentException("Invalid argument combination for 'smoothQuadraticCurveToAbs', allowed combinations are: [end] [x, y]");
    }
    private void ExecutePathSmoothQuadraticCurveToRel(XmlElement element, Collection<IPath> paths)
MagickScript