FreeImage.GetHbitmap Method

FreeImage.NET

FreeImageGetHbitmap Method
Retrieves an hBitmap for a FreeImage bitmap. Call FreeHbitmap(IntPtr) to free the handle.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static IntPtr GetHbitmap(
	FIBITMAP dib,
	IntPtr hdc,
	bool unload
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
hdc
Type: SystemIntPtr
A reference device context. Use IntPtr.Zero if no reference is available.
unload
Type: SystemBoolean
When true dib will be unloaded if the function succeeded.

Return Value

Type: IntPtr
The hBitmap for the FreeImage bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptiondib is null.
See Also