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)