Developers can use the GetImageFormat method on any supported file type to retrieve the format of that image file.