Creates a FreeImageBitmap from the specified file.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FreeImageBitmap FromFile(
	string filename
)
Visual Basic (Declaration)
Public Shared Function FromFile ( _
	filename As String _
) As FreeImageBitmap
Visual C++
public:
static FreeImageBitmap^ FromFile(
	String^ filename
)

Parameters

filename
Type: System..::.String
A string that contains the name of the file from which to create the FreeImageBitmap.

Return Value

The FreeImageBitmap this method creates.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also