Converts the file extension to the corresponding format ImageFileFormat if found, or Png()()() otherwise.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
| C# |
|---|
public static ImageFileFormat ImageFileFormatFromFileExtension( string fileExtension ) |
Parameters
- fileExtension
- Type: System..::.String
File extension.
Return Value
Returns the corresponding format ImageFileFormat.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | fileExtension is nullNothingnullptra null reference (Nothing in Visual Basic). |