Converts a FreeImage bitmap to a .NET Bitmap.
Namespace:
FreeImageAPIAssembly: 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
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | dib is null. |
| System..::.ArgumentException | The image type of dib is not FIT_BITMAP. |