public static extern void PixelCollection_Dispose(IntPtr instance); [DllImport(NativeLibrary.X86Name, CallingConvention = CallingConvention.Cdecl)]