FreeImage.NET Class Library Reference
FreeImageCreateFromHbitmap Method |
Creates a FreeImage DIB from a Device Context/Compatible Bitmap.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP CreateFromHbitmap( IntPtr hbitmap, IntPtr hdc )
Parameters
- hbitmap
- Type: SystemIntPtr
Handle to the bitmap. - hdc
- Type: SystemIntPtr
Handle to a device context.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | hbitmap is null. |
See Also