java.lang.ObjectA simple container class to aggregate an image, a set of thumbnail (preview) images, and an object representing metadata associated with the image.javax.imageio.IIOImage
The image data may take the form of either a
RenderedImage
, or a Raster
. Reader
methods that return an IIOImage
will always return a
BufferedImage
using the RenderedImage
reference. Writer methods that accept an IIOImage
will always accept a RenderedImage
, and may optionally
accept a Raster
.
Exactly one of getRenderedImage
and
getRaster
will return a non-null
value.
Subclasses are responsible for ensuring this behavior.
Field Summary | ||
---|---|---|
protected RenderedImage | image | The RenderedImage being referenced. |
protected Raster | raster | The Raster being referenced. |
protected List<BufferedImage> | thumbnails | A List of BufferedImage thumbnails,
or null . Non-BufferedImage objects
must not be stored in this List . |
protected IIOMetadata | metadata | An IIOMetadata object containing metadata
associated with the image. |
Constructor: |
---|
IIOImage containing a
RenderedImage , and thumbnails and metadata
associated with it.
All parameters are stored by reference. The
|
IIOImage containing a
Raster , and thumbnails and metadata
associated with it.
All parameters are stored by reference.
|
Method from javax.imageio.IIOImage Summary: |
---|
getMetadata, getNumThumbnails, getRaster, getRenderedImage, getThumbnail, getThumbnails, hasRaster, setMetadata, setRaster, setRenderedImage, setThumbnails |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.imageio.IIOImage Detail: |
---|
IIOMetadata
object, or null is none is set. |
IIOImage . |
Raster , or
null if only a RenderedImage is
available. |
RenderedImage , or
null if only a Raster is available. |
|
List of thumbnail
BufferedImage s, or null if none is
set. A live reference is returned. |
true if this IIOImage stores
a Raster rather than a RenderedImage . |
IIOMetadata to a new object, or
null . |
Raster . The value is
stored by reference. Any existing RenderedImage is
discarded. |
RenderedImage . The value is
stored by reference. Any existing Raster is
discarded. |
List of
BufferedImage s, or to null . The
reference to the previous List is discarded.
The |