Convert a file extension to an ImageFormat.
Syntax

[C#]

static ImageFormat FromExtension(string extension);

[Visual Basic]

Shared Function FromExtension(extension As String) As ImageFormat
Notes

None.

Example

None.