FreeImage.GetBitmap Method

FreeImage.NET

FreeImageGetBitmap Method
Converts a FreeImage bitmap to a .NET Bitmap.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static Bitmap GetBitmap(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.

Return Value

Type: Bitmap
The converted .NET Bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptiondib is null.
ArgumentException The image type of dib is not FIT_BITMAP.
Remarks
Copying metadata has been disabled until a proper way of reading and storing metadata in a .NET bitmap is found.
See Also