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