public static extern IntPtr MagickImageCollection_Flatten(IntPtr image, out IntPtr exception); [DllImport(NativeLibrary.X64Name, CallingConvention = CallingConvention.Cdecl)]