public static extern void MagickImage_AutoLevel(IntPtr Instance, UIntPtr channels, out IntPtr exception); [DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]