Checks if an extension is valid for a certain format.
Namespace:
FreeImageAPIAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | extension is null. |