ISharedBitmap Interface

Exposes memory-efficient methods for accessing bitmaps.

This interface is used as a thin wrapper around HBITMAP objects, allowing those objects to be reference counted and protected from having their underlying data changed.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ComImportAttribute]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("091162a4-bc96-411f-aae8-c5122cd03363")]
public interface ISharedBitmap

Remarks

Methods

Detach Retrieves the bitmap contained in an ISharedBitmap object, and returns a copy if the contained bitmap resides in shared memory.

After calling this method the bitmap is no longer associated with this ISharedBitmap object and you cannot call GetSharedBitmap(IntPtr) or Detach(IntPtr) on it again.

GetFormat Retrieves the alpha type of the bitmap image..
GetSharedBitmap Retrieves the bitmap contained in an ISharedBitmap object.
GetSize Retrieves the size of the bitmap contained in an ISharedBitmap object.
InitializeBitmap Initializes a new ISharedBitmap object with a given bitmap.

See Also