Creates a FreeImageBitmap from a handle to a GDI bitmap.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FreeImageBitmap FromHbitmap(
	IntPtr hbitmap
)
Visual Basic (Declaration)
Public Shared Function FromHbitmap ( _
	hbitmap As IntPtr _
) As FreeImageBitmap
Visual C++
public:
static FreeImageBitmap^ FromHbitmap(
	IntPtr hbitmap
)

Parameters

hbitmap
Type: System..::.IntPtr
The GDI bitmap handle from which to create the FreeImageBitmap.

Return Value

The FreeImageBitmap this method creates.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also