FreeImage.GetBitmap Method
From FreeImage.NET
FreeImage.NET Class Library Reference
| 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)
C#
public static Bitmap GetBitmap( FIBITMAP dib )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
Return Value
Type: BitmapThe converted .NET Bitmap.
| Exception | Condition |
|---|---|
| ArgumentNullException | dib is null. |
| ArgumentException | The image type of dib is not FIT_BITMAP. |
Copying metadata has been disabled until a proper way
of reading and storing metadata in a .NET bitmap is found.