public class GIFStreamMetadata extends IIOMetadata
GIFStreamMetadataExt class extends the
GIFStreamMetadata class to add fields and support for animated
GIF image files. Namely this is the application extension support to define
image loops. An instance of this class is returned by the
GifImageWriter.getDefaultStreamMetadata(javax.imageio.ImageWriteParam)
method.
This class does not currently contain XML format support for this application extension block.
For more details, look at the GIF89 Specification. Generally this page contains many interesting information on animated GIFs.
| Modifier and Type | Class and Description |
|---|---|
class |
GIFStreamMetadata.ApplicationExtension
The
ApplicationExtension class provides structured access
GIF image application extensions. |
| Modifier and Type | Field and Description |
|---|---|
int |
backgroundColorIndex |
int |
colorResolution |
static String[] |
colorTableSizes |
GIFStreamMetadata.ApplicationExtension[] |
extensions
The application extension blocks,
null to nott add any |
byte[] |
globalColorTable |
int |
logicalScreenHeight |
int |
logicalScreenWidth |
int |
pixelAspectRatio |
boolean |
sortFlag |
String |
version |
static String[] |
versionStrings |
| Constructor and Description |
|---|
GIFStreamMetadata() |
| Modifier and Type | Method and Description |
|---|---|
Node |
getAsTree(String formatName) |
boolean |
isReadOnly() |
void |
mergeTree(String formatName,
Node root) |
void |
removeLoops()
Removes the loop application extension block from the meta data, if at
all contained.
|
void |
reset() |
void |
setFromTree(String formatName,
Node root) |
void |
setLoops(int loops)
Sets the number of loops, the GIF image animation representated by the
metadata should use.
|
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, hasController, isStandardMetadataFormatSupported, setControllerpublic static final String[] versionStrings
public String version
public int logicalScreenWidth
public int logicalScreenHeight
public int colorResolution
public int pixelAspectRatio
public int backgroundColorIndex
public boolean sortFlag
public static final String[] colorTableSizes
public byte[] globalColorTable
public GIFStreamMetadata.ApplicationExtension[] extensions
null to nott add anypublic boolean isReadOnly()
isReadOnly in class IIOMetadatapublic Node getAsTree(String formatName)
getAsTree in class IIOMetadatapublic void setFromTree(String formatName, Node root)
setFromTree in class IIOMetadatapublic void mergeTree(String formatName, Node root)
mergeTree in class IIOMetadatapublic void reset()
reset in class IIOMetadatapublic final void setLoops(int loops)
loops - The number of loops to set as an unsigned 16bit value. If
specified as 0, the loop application block is removed.public void removeLoops()
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"