API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio. IIOImage View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      IIOImage
Implements
Subclasses
Description
public class IIOImage
  A simple container class to aggregate an image, a set of thumbnail (preview) images, and an object representing metadata associated with the image.
Constructors
public IIOImage (Raster raster, List<BufferedImage> thumbnails, IIOMetadata metadata)
  Constructs an IIOImage containing a Raster, and thumbnails and metadata associated with it.
public IIOImage (RenderedImage image, List<BufferedImage> thumbnails, IIOMetadata metadata)
  Constructs an IIOImage containing a RenderedImage, and thumbnails and metadata associated with it.
Methods
Hide/Show inherited methods
public IIOMetadata getMetadata ()
  Returns a reference to the current IIOMetadata object, or null is none is set.
public int getNumThumbnails ()
  Returns the number of thumbnails stored in this IIOImage.
public Raster getRaster ()
  Returns the currently set Raster, or null if only a RenderedImage is available.
public RenderedImage getRenderedImage ()
  Returns the currently set RenderedImage, or null if only a Raster is available.
public BufferedImage getThumbnail (int index)
  Returns a thumbnail associated with the main image.
public List<BufferedImage> getThumbnails ()
  Returns the current List of thumbnail BufferedImages, or null if none is set.
public boolean hasRaster ()
  Returns true if this IIOImage stores a Raster rather than a RenderedImage.
public void setMetadata (IIOMetadata metadata)
  Sets the IIOMetadata to a new object, or null.
public void setRaster (Raster raster)
  Sets the current Raster.
public void setRenderedImage (RenderedImage image)
  Sets the current RenderedImage.
public void setThumbnails (List<BufferedImage> thumbnails)
  Sets the list of thumbnails to a new List of BufferedImages, or to null.
Fields
Hide/Show inherited fields
protected RenderedImage image
The RenderedImage being referenced.
protected IIOMetadata metadata
An IIOMetadata object containing metadata associated with the image.
protected Raster raster
The Raster being referenced.
protected List<BufferedImage> thumbnails
  A List of BufferedImage thumbnails, or null.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar