ImageMagick.MagickImage.NativeMagickImage.LevelColors C# (CSharp) Метод

LevelColors() публичный Метод

public LevelColors ( MagickColor blackColor, MagickColor whiteColor, Channels channels, bool invert ) : void
blackColor MagickColor
whiteColor MagickColor
channels Channels
invert bool
Результат void
      public void LevelColors(MagickColor blackColor, MagickColor whiteColor, Channels channels, bool invert)
      {
        using (INativeInstance blackColorNative = MagickColor.CreateInstance(blackColor))
        {
          using (INativeInstance whiteColorNative = MagickColor.CreateInstance(whiteColor))
          {
            IntPtr exception = IntPtr.Zero;
            #if ANYCPU
            if (NativeLibrary.Is64Bit)
            #endif
            #if WIN64 || ANYCPU
            NativeMethods.X64.MagickImage_LevelColors(Instance, blackColorNative.Instance, whiteColorNative.Instance, (UIntPtr)channels, invert, out exception);
            #endif
            #if ANYCPU
            else
            #endif
            #if !WIN64 || ANYCPU
            NativeMethods.X86.MagickImage_LevelColors(Instance, blackColorNative.Instance, whiteColorNative.Instance, (UIntPtr)channels, invert, out exception);
            #endif
            CheckException(exception);
          }
        }
      }
      public void Levelize(double blackPoint, double whitePoint, double gamma, Channels channels)
MagickImage.NativeMagickImage