FreeImage.CreateFromBitmap Method

FreeImage.NET

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: FIBITMAP
Handle to a FreeImage bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptionbitmap 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