This function takes a filename or a file-extension and returns the plugin that can read/write files with that extension in the form of a FREE_IMAGE_FORMAT identifier.

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

Syntax

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

Parameters

filename
Type: System..::.String
The filename or -extension.

Return Value

The FREE_IMAGE_FORMAT of the plugin.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also