public static boolean write (RenderedImage im, String formatName, File output) throws IOException

Writes an image using an arbitrary ImageWriter that supports the given format to a File. If there is already a File present, its contents are discarded.

Parameters:
im    a RenderedImage to be written.
formatName    a String containing the informal name of the format.
output    a File to be written to.

Returns:  false if no appropriate writer is found.

Exceptions:
IllegalArgumentException    if any parameter is null.
IOException    if an error occurs during writing.