Convert a file extension to an ImageFormat.
Syntax

[C#]

static ImageFormat FromExtension(string extension);

[Visual Basic]

Shared Function FromExtension(extension As String) As ImageFormat
Params
Name Description
extension The file extension.
return The format, or null if there is no match.
Notes

None.

Example

None.