Class SafeHBitmapHandle
A hbitmap SafeHandle implementation, use this for disposable usage of HBitmap
Inherited Members
Namespace: Dapplo.Windows.Gdi32.SafeHandles
Assembly: Dapplo.Windows.Gdi32.dll
Syntax
public class SafeHBitmapHandle : SafeObjectHandle
Constructors
| Improve this Doc View SourceSafeHBitmapHandle()
Default constructor is needed to support marshalling!!
Declaration
public SafeHBitmapHandle()
SafeHBitmapHandle(Bitmap)
Create a SafeHBitmapHandle from a Bitmap
Declaration
public SafeHBitmapHandle(Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | bitmap | Bitmap to call GetHbitmap on |
SafeHBitmapHandle(IntPtr)
Create a SafeHBitmapHandle from an existing handle
Declaration
public SafeHBitmapHandle(IntPtr preexistingHandle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | preexistingHandle | IntPtr to HBitmap |