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 ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function IsExtensionValidForFIF ( _ fif As FREE_IMAGE_FORMAT, _ extension As String _ ) As Boolean |
| Visual C++ |
|---|
public: static bool IsExtensionValidForFIF( FREE_IMAGE_FORMAT fif, String^ extension ) |
Parameters
- fif
- Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
The desired format.
- extension
- Type: System..::.String
The desired extension.
Return Value
True if the extension is valid for the given format, false otherwise.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | extension is null. |