Converts the file extension to the corresponding format ImageFileFormat if found, or Png()()() otherwise.

Namespace:  SGP.XSpace
Assembly:  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

ExceptionCondition
System..::.ArgumentNullException fileExtension is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also