Checks if a filename is valid for a certain format.

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

Syntax

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

Parameters

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

Return Value

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

Exceptions

ExceptionCondition
System..::.ArgumentNullException filename is null.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also