FreeImage.NET Class Library Reference
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: BooleanTrue if the filename is valid for the given format, false otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | filename is null. |
See Also