FreeImage.CreateFromHbitmap Method

FreeImage.NET

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: FIBITMAP
Handle to a FreeImage bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptionhbitmap is null.
See Also