Creates a FreeImage DIB from a Device Context/Compatible Bitmap.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public static FIBITMAP CreateFromHbitmap( IntPtr hbitmap, IntPtr hdc ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function CreateFromHbitmap ( _ hbitmap As IntPtr, _ hdc As IntPtr _ ) As FIBITMAP |
| Visual C++ |
|---|
public: static FIBITMAP CreateFromHbitmap( IntPtr hbitmap, IntPtr hdc ) |
Parameters
- hbitmap
- Type: System..::.IntPtr
Handle to the bitmap.
- hdc
- Type: System..::.IntPtr
Handle to a device context.
Return Value
Handle to a FreeImage bitmap.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | hbitmap is null. |