Converts a FreeImage bitmap to a .NET Bitmap.

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

Syntax

C#
public static Bitmap GetBitmap(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Shared Function GetBitmap ( _
	dib As FIBITMAP _
) As Bitmap
Visual C++
public:
static Bitmap^ GetBitmap(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.

Return Value

The converted .NET Bitmap.

Remarks

Copying metadata has been disabled until a proper way of reading and storing metadata in a .NET bitmap is found.

Exceptions

ExceptionCondition
System..::.ArgumentNullException dib is null.
System..::.ArgumentException The image type of dib is not FIT_BITMAP.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also