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