FreeImage.IsFilenameValidForFIF Method (FREE_IMAGE_FORMAT, String, StringComparison)

FreeImage.NET

FreeImageIsFilenameValidForFIF Method (FREE_IMAGE_FORMAT, String, StringComparison)
Checks if a filename is valid for a certain format.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool IsFilenameValidForFIF(
	FREE_IMAGE_FORMAT fif,
	string filename,
	StringComparison comparisonType
)

Parameters

fif
Type: FreeImageAPIFREE_IMAGE_FORMAT
The desired format.
filename
Type: SystemString
The desired filename.
comparisonType
Type: SystemStringComparison
The string comparison type.

Return Value

Type: Boolean
True if the filename is valid for the given format, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionfilename is null.
See Also