This function returns the primary (main or most commonly used?) extension of a certain image format (fif). This is done by returning the first of all possible extensions returned by GetFIFExtensionList(). That assumes, that the plugin returns the extensions in ordered form.

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

Syntax

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

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
The image format to obtain the primary extension for.

Return Value

The primary extension of the specified image format.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also