Checks if a filename is valid for a certain format.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static bool IsFilenameValidForFIF( FREE_IMAGE_FORMAT fif, string filename ) |
Visual Basic (Declaration) |
---|
Public Shared Function IsFilenameValidForFIF ( _ fif As FREE_IMAGE_FORMAT, _ filename As String _ ) As Boolean |
Visual C++ |
---|
public: static bool IsFilenameValidForFIF( FREE_IMAGE_FORMAT fif, String^ filename ) |
Parameters
- fif
- Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
The desired format.
- filename
- Type: System..::.String
The desired filename.
Return Value
True if the filename is valid for the given format, false otherwise.Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | filename is null. |