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

ch5ImageMetadata

This is the class used to hold the image metadata (see Listing 5.9). For reading, its values are taken from the input stream. For writing, its values must be set by the application. The DTD for this class is the following:

<!ELEMENT ch5.imageio.ch5image_1.0 (imageDimensions)>
<!ATTLIST imageDimensions
    imageWidth   CDATA  #REQUIRED
    imageHeight  CDATA  #REQUIRED
>

As was true for the ch5StreamMetadata class, this is a very minimal set of metadata used for illustrative purposes, and in practice these classes will be much more complicated.

Listing 5.9 ch5ImageMetadata.java
 package ch5.imageio.plugins; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import javax.imageio.ImageTypeSpecifier; ...
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