ImageMagick.MagickScript.ExecuteAutoGamma C# (CSharp) Method

ExecuteAutoGamma() private method

private ExecuteAutoGamma ( XmlElement element, MagickImage image ) : void
element System.Xml.XmlElement
image MagickImage
return void
    private void ExecuteAutoGamma(XmlElement element, MagickImage image)
    {
      Hashtable arguments = new Hashtable();
      foreach (XmlAttribute attribute in element.Attributes)
      {
        arguments[attribute.Name] = Variables.GetValue<Channels>(attribute);
      }
      if (arguments.Count == 0)
        image.AutoGamma();
      else if (OnlyContains(arguments, "channels"))
        image.AutoGamma((Channels)arguments["channels"]);
      else
        throw new ArgumentException("Invalid argument combination for 'autoGamma', allowed combinations are: [] [channels]");
    }
    private void ExecuteAutoLevel(XmlElement element, MagickImage image)
MagickScript