ImageMagick.MagickScript.ExecuteDrawableDensity C# (CSharp) Method

ExecuteDrawableDensity() private method

private ExecuteDrawableDensity ( XmlElement element, Collection drawables ) : void
element System.Xml.XmlElement
drawables Collection
return void
    private void ExecuteDrawableDensity(XmlElement element, Collection<IDrawable> drawables)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        if (attribute.Name == "density")
          arguments["density"] = Variables.GetValue<double>(attribute);
        else if (attribute.Name == "pointDensity")
          arguments["pointDensity"] = Variables.GetValue<PointD>(attribute);
      }
      if (OnlyContains(arguments, "density"))
        drawables.Add(new DrawableDensity((double)arguments["density"]));
      else if (OnlyContains(arguments, "pointDensity"))
        drawables.Add(new DrawableDensity((PointD)arguments["pointDensity"]));
      else
        throw new ArgumentException("Invalid argument combination for 'density', allowed combinations are: [density] [pointDensity]");
    }
    private void ExecuteDrawableEllipse(XmlElement element, Collection<IDrawable> drawables)
MagickScript