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

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

private ExecuteClut ( XmlElement element, MagickImage image ) : void
element System.Xml.XmlElement
image MagickImage
Результат void
    private void ExecuteClut(XmlElement element, MagickImage image)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        if (attribute.Name == "channels")
          arguments["channels"] = Variables.GetValue<Channels>(attribute);
        else if (attribute.Name == "method")
          arguments["method"] = Variables.GetValue<PixelInterpolateMethod>(attribute);
      }
      foreach (XmlElement elem in element.SelectNodes("*"))
      {
        arguments[elem.Name] = CreateMagickImage(elem);
      }
      if (OnlyContains(arguments, "image"))
        image.Clut((MagickImage)arguments["image"]);
      else if (OnlyContains(arguments, "image", "method"))
        image.Clut((MagickImage)arguments["image"], (PixelInterpolateMethod)arguments["method"]);
      else if (OnlyContains(arguments, "image", "method", "channels"))
        image.Clut((MagickImage)arguments["image"], (PixelInterpolateMethod)arguments["method"], (Channels)arguments["channels"]);
      else
        throw new ArgumentException("Invalid argument combination for 'clut', allowed combinations are: [image] [image, method] [image, method, channels]");
    }
    private void ExecuteColorAlpha(XmlElement element, MagickImage image)
MagickScript