ImageMagick.MagickScript.ExecuteTile C# (CSharp) Метод

ExecuteTile() приватный Метод

private ExecuteTile ( XmlElement element, MagickImage image ) : void
element XmlElement
image MagickImage
Результат void
    private void ExecuteTile(XmlElement element, MagickImage image)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        if (attribute.Name == "args")
          arguments["args"] = Variables.GetValue<String>(attribute);
        else if (attribute.Name == "compose")
          arguments["compose"] = Variables.GetValue<CompositeOperator>(attribute);
      }
      foreach (XmlElement elem in element.SelectNodes("*"))
      {
        arguments[elem.Name] = CreateMagickImage(elem);
      }
      if (OnlyContains(arguments, "image", "compose"))
        image.Tile((MagickImage)arguments["image"], (CompositeOperator)arguments["compose"]);
      else if (OnlyContains(arguments, "image", "compose", "args"))
        image.Tile((MagickImage)arguments["image"], (CompositeOperator)arguments["compose"], (String)arguments["args"]);
      else
        throw new ArgumentException("Invalid argument combination for 'tile', allowed combinations are: [image, compose] [image, compose, args]");
    }
    private void ExecuteTint(XmlElement element, MagickImage image)
MagickScript