Package javax.imageio

This package provides image input/output APIs.

See: Description

Package javax.imageio Description:

This package provides image input/output APIs.

The standard class library provides other ways of loading images (@see java.awt.Toolkit, @see java.awt.Component)) but the ImageIO package is more powerful.

The static ImageIO class supports reading and writing images in many different formats along with most other basic image I/O operations.

Other classes provide finer control of image-related operations; reading is controlled by ImageReader, ImageReadParam and ImageTypeSpecifyer, writing by ImageWriter and ImageWriteParam. ImageTranscoder allows fine-grained control over how images are converted between formats and IIOException reports errors. IIOImage describes an image file in detail including metadata and thumbnails.

Supported Formats

The default GNU Classpath ImageIO backend uses ImageMagick and so supports the following formats:

Read Write
JPEGyesyes
PNGyesyes
BMPyesyes
WBMPyesyes
GIFyesyes
TIFFyesyes
XPMyesyes
TGAyesyes
PDFyesno
SVGyesno

Since: 1.4