IIntPtrProvidable Interface
Definition
Namespace: P1.ImageSdk
Interface for a IDisposable object that creates and destroys a GCHandle to an IntPtr More…
public interface IIntPtrProvidable : IDisposable
Remarks
Interface for a IDisposable object that creates and destroys a GCHandle to an IntPtr
In order to make a GCHandle’s IntPtr as short lived as possible, objects of this type will create the IntPtr when you receive the IntPtrProvidable and destroy the handle when you dispose your IntPtrProvidable - which you should do ASAP.
BitmapImage and HugeBitmapImage both can provide IntPtrProvidable to their data, but HugeBitmapImage holds its pixel data in unmanaged memory. Still, it uses this interface for compatibility.