FreeImage.CreateFromBitmap Method
From FreeImage.NET
FreeImage.NET Class Library Reference
| FreeImageCreateFromBitmap Method |
Converts an .NET Bitmap into a FreeImage bitmap.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
C#
public static FIBITMAP CreateFromBitmap( Bitmap bitmap )
Parameters
- bitmap
- Type: System.DrawingBitmap
The Bitmap to convert.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
| Exception | Condition |
|---|---|
| ArgumentNullException | bitmap is null. |
| ArgumentException | The bitmaps pixelformat is invalid. |
Copying metadata has been disabled until a proper way
of reading and storing metadata in a .NET bitmap is found.