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