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)
Syntax
C#
public static FIBITMAP CreateFromBitmap( Bitmap bitmap )
Parameters
- bitmap
- Type: System.DrawingBitmap
The Bitmap to convert.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | bitmap is null. |
ArgumentException | The bitmaps pixelformat is invalid. |
Remarks
Copying metadata has been disabled until a proper way
of reading and storing metadata in a .NET bitmap is found.
See Also