Convert a media (MIME) type to an ImageFormat.
Syntax

[C#]

static ImageFormat FromMediaType(string extension);

[Visual Basic]

Shared Function FromMediaType(extension As String) As ImageFormat
Notes

None.

Example

None.