public class GIFStreamMetadata
extends javax.imageio.metadata.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 java.lang.String[] |
colorTableSizes |
GIFStreamMetadata.ApplicationExtension[] |
extensions
The application extension blocks,
null to nott add any |
byte[] |
globalColorTable |
int |
logicalScreenHeight |
int |
logicalScreenWidth |
int |
pixelAspectRatio |
boolean |
sortFlag |
java.lang.String |
version |
static java.lang.String[] |
versionStrings |
Constructor and Description |
---|
GIFStreamMetadata() |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Node |
getAsTree(java.lang.String formatName) |
boolean |
isReadOnly() |
void |
mergeTree(java.lang.String formatName,
org.w3c.dom.Node root) |
void |
removeLoops()
Removes the loop application extension block from the meta data, if at
all contained.
|
void |
reset() |
void |
setFromTree(java.lang.String formatName,
org.w3c.dom.Node root) |
void |
setLoops(int loops)
Sets the number of loops, the GIF image animation representated by the
metadata should use.
|
public static final java.lang.String[] versionStrings
public java.lang.String version
public int logicalScreenWidth
public int logicalScreenHeight
public int colorResolution
public int pixelAspectRatio
public int backgroundColorIndex
public boolean sortFlag
public static final java.lang.String[] colorTableSizes
public byte[] globalColorTable
public GIFStreamMetadata.ApplicationExtension[] extensions
null
to nott add anypublic boolean isReadOnly()
isReadOnly
in class javax.imageio.metadata.IIOMetadata
public org.w3c.dom.Node getAsTree(java.lang.String formatName)
getAsTree
in class javax.imageio.metadata.IIOMetadata
public void setFromTree(java.lang.String formatName, org.w3c.dom.Node root)
setFromTree
in class javax.imageio.metadata.IIOMetadata
public void mergeTree(java.lang.String formatName, org.w3c.dom.Node root)
mergeTree
in class javax.imageio.metadata.IIOMetadata
public void reset()
reset
in class javax.imageio.metadata.IIOMetadata
public 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 - 2020 Adobe Systems Incorporated. All Rights Reserved"