public class ImageMetadata extends Object
null
-valued field indicates that the metadata field has not
been set.Modifier and Type | Field and Description |
---|---|
Integer |
backgroundColor
An RGB color to be used as a background.
|
Integer |
backgroundIndex
A palette index to be used as a background.
|
Boolean |
blackIsZero
true if smaller values represent darker shades. |
Integer |
delayTime
The amount of time to wait (in milliseconds) before continuing
to process the data stream.
|
Integer |
disposalMethod
The disposal method for the image.
|
Float |
gamma
The image gamma.
|
Integer |
imageHeight
The height of the image.
|
Integer |
imageLeftPosition
The X offset of the image relative to the screen origin.
|
Integer |
imageTopPosition
The Y offset of the image relative to the screen origin.
|
Integer |
imageWidth
The width of of the image.
|
Integer |
loopCount
The amount of times to loop the animation, zero or null if the animation
should loop endlessly.
|
Integer |
transparentIndex
A palette index to be used for transparent pixels.
|
Constructor and Description |
---|
ImageMetadata(Float gamma,
Boolean blackIsZero,
Integer backgroundIndex,
Integer backgroundColor,
Integer transparentIndex,
Integer delayTime,
Integer loopCount,
Integer imageWidth,
Integer imageHeight,
Integer imageLeftPosition,
Integer imageTopPosition,
Integer disposalMethod) |
public final Float gamma
public final Boolean blackIsZero
true
if smaller values represent darker shades.public final Integer backgroundIndex
public final Integer backgroundColor
public final Integer delayTime
public final Integer loopCount
public final Integer transparentIndex
public final Integer imageWidth
public final Integer imageHeight
public final Integer imageLeftPosition
public final Integer imageTopPosition
public final Integer disposalMethod
public ImageMetadata(Float gamma, Boolean blackIsZero, Integer backgroundIndex, Integer backgroundColor, Integer transparentIndex, Integer delayTime, Integer loopCount, Integer imageWidth, Integer imageHeight, Integer imageLeftPosition, Integer imageTopPosition, Integer disposalMethod)
gamma
- the image gammablackIsZero
- whether smaller values represent darker shadesbackgroundIndex
- a palette index to use as backgroundbackgroundColor
- the color to be used as background.
The color format, in Integer, is packed as ARGB with 8 bits per channel.delayTime
- the amount of time to pause at the current image
(milliseconds).loopCount
- the amount of times to loop the animation
(zero for infinite loop).transparentIndex
- a palette index to be used as transparency.Copyright © 2020. All rights reserved.