API Reference
Class
ImageUtilities
Provides utility methods for working with images.
Inheritance
- Object
- ImageUtilities
Methods
public static String GetExtensionFromMimeType(String mimeType) #Returns:
StringGets the file extension from a MIME type.
Parameters
- mimeType System.String
- The MIME type.
Returns
The file extension (including the dot).
public static String GetMimeTypeFromExtension(String extension) #Returns:
StringGets the MIME type from a file extension.
Parameters
- extension System.String
- The file extension (with or without the dot).
Returns
The MIME type string.
public static String GetMimeTypeFromFile(String filePath) #Returns:
StringGets the MIME type from a file path.
Parameters
- filePath System.String
- The file path.
Returns
The MIME type string.
public static String GetMimeTypeFromUrl(String url) #Returns:
StringGets the MIME type from a URL, ignoring query-string and fragment suffixes.
Parameters
- url System.String
- The URL or URL-like path.
Returns
The MIME type string.