Skip to Main Content
Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization
book

Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

by Alejandro Terrazas, John Ostuni, Michael Barlow
November 2002
Intermediate to advanced content levelIntermediate to advanced
848 pages
19h 59m
English
Sams
Content preview from Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization

JAI IO

One of the most useful aspects of JAI is the ability to easily read and write image data. Images can be loaded into a PlanarImage if they are contained in a formatted image file, a nonformatted image file, or a BufferedImage. Likewise, the data contained in a PlanarImage can be written into a file as either formatted or unformatted data or the PlanarImage can be converted into a BufferedImage.

File Operator

There are an assortment of operators for reading a specific image format such as BMP, GIF, FPX, JPEG, PNG, PNM, and TIFF (see Table 6.11).

Note

The IO for JAI is built on the Image IO package discussed in Chapter 5, so there shouldn't be a discrepancy between the file formats the Image IO package can decode/encode and the file formats ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
JavaFX 9 by Example

JavaFX 9 by Example

Carl Dea, Gerrit Grunwald, José Pereda, Sean Phillips, Mark Heckler

Publisher Resources

ISBN: 0672320940Purchase book