Checks if an extension is valid for a certain format.

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

Syntax

C#
public static bool IsExtensionValidForFIF(
	FREE_IMAGE_FORMAT fif,
	string extension,
	StringComparison comparisonType
)
Visual Basic (Declaration)
Public Shared Function IsExtensionValidForFIF ( _
	fif As FREE_IMAGE_FORMAT, _
	extension As String, _
	comparisonType As StringComparison _
) As Boolean
Visual C++
public:
static bool IsExtensionValidForFIF(
	FREE_IMAGE_FORMAT fif, 
	String^ extension, 
	StringComparison comparisonType
)

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
The desired format.
extension
Type: System..::.String
The desired extension.
comparisonType
Type: System..::.StringComparison
The string comparison type.

Return Value

True if the extension is valid for the given format, false otherwise.

Exceptions

ExceptionCondition
System..::.ArgumentNullException extension is null.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also