Creates a FreeImage DIB from a Device Context/Compatible Bitmap.

Namespace:  FreeImageAPI
Assembly:  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

ExceptionCondition
System..::.ArgumentNullException hbitmap is null.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also