FreeImage.NET Class Library Reference
FreeImageIsExtensionValidForFIF Method (FREE_IMAGE_FORMAT, String, StringComparison) |
Checks if an extension 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 IsExtensionValidForFIF( FREE_IMAGE_FORMAT fif, string extension, StringComparison comparisonType )
Parameters
- fif
- Type: FreeImageAPIFREE_IMAGE_FORMAT
The desired format. - extension
- Type: SystemString
The desired extension. - comparisonType
- Type: SystemStringComparison
The string comparison type.
Return Value
Type: BooleanTrue if the extension is valid for the given format, false otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | extension is null. |
See Also