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

[C#]

static ImageFormat FromMediaType(string mediaType);

[Visual Basic]

Shared Function FromMediaType(mediaType As String) As ImageFormat
Params
Name Description
mediaType The media type.
return The format, or null if there is no match.
Notes

None.

Example

None.