Converts a FreeImageBitmap instance to a Bitmap instance.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static explicit operator Bitmap ( FreeImageBitmap value ) |
Visual Basic (Declaration) |
---|
Public Shared Narrowing Operator CType ( _ value As FreeImageBitmap _ ) As Bitmap |
Visual C++ |
---|
static explicit operator Bitmap^ ( FreeImageBitmap^ value ) |
Parameters
- value
- Type: FreeImageAPI..::.FreeImageBitmap
A FreeImageBitmap instance.
Return Value
A new instance of Bitmap initialized to value.
Remarks
The explicit conversion from FreeImageBitmap into Bitmap
allows to create an instance on the fly and use it as if
was a Bitmap. This way it can be directly used with a
PixtureBox for example without having to call any
conversion operations.