| package javax.imageio
|
Java SE 6 |
The main package of the Java Image I/O API.
Many common image I/O operations may be performed using the static
methods of the
This package contains the basic classes and interfaces for describing
the contents of image files, including metadata and thumbnails
( All implementations of javax.imageio provide the following standard image format plug-ins:
Standard Plug-in NotesStandard plug-in for GIF image format
ImageIO provides Writing GIF imagesThe GIF image writer plug-in guarantees lossless writing for images which meet the following requirements:
By default the GIF writer plug-in creates version "89a" images. This can be changed to "87a" by explicitly setting the version in the stream metadata (see GIF Stream Metadata Format Specification).
The GIF writer plug-in supports the creation of animated GIF images through
the standard sequence writing methods defined in the
A global color table is written to the output stream if one of the following conditions is met:
In the first case the global color table in the stream metadata is used, in the second the local color table in the image metadata is used, and in the third a global color table is created from the ColorModel or SampleModel of the (first) image. A local color table is written to the output stream only if image metadata containing a LocalColorTable element is supplied to the writer, or no image metadata is supplied to the writer and the local color table which would be generated from the image itself is not equal to the global color table. A Graphic Control Extension block is written to the output stream only if image metadata containing a GraphicControlExtension element is supplied to the writer, or no image metadata is supplied and the local color table generated from the image requires a transparent index. Application, Plain Text, and Comment Extension blocks are written only if they are supplied to the writer via image metadata.
The writing of interlaced images can be controlled by the progressive
mode of the provided The GIF image writer plug-in supports setting output stream metadata from metadata supplied to the writer in either the native GIF stream metadata format javax_imageio_gif_stream_1.0 or the standard metadata format javax_imageio_1.0, and setting output image metadata from metadata supplied to the writer in either the native GIF image metadata format javax_imageio_gif_image_1.0 or the standard metadata format javax_imageio_1.0. The mapping of standard metadata format to the GIF native stream and image metadata formats is given in the tables here .
|
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|