ImageMagick.MagickScript.ExecuteReduceNoise C# (CSharp) Method

ExecuteReduceNoise() private method

private ExecuteReduceNoise ( XmlElement element, MagickImage image ) : void
element XmlElement
image MagickImage
return void
    private void ExecuteReduceNoise(XmlElement element, MagickImage image)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        arguments[attribute.Name] = Variables.GetValue<Int32>(attribute);
      }
      if (arguments.Count == 0)
        image.ReduceNoise();
      else if (OnlyContains(arguments, "order"))
        image.ReduceNoise((Int32)arguments["order"]);
      else
        throw new ArgumentException("Invalid argument combination for 'reduceNoise', allowed combinations are: [] [order]");
    }
    private void ExecuteRegionMask(XmlElement element, MagickImage image)
MagickScript