Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_HEADER_SIZE
Specifies the block header size.
|
static byte |
EXTENSION_LABEL
Extension label.
|
static byte |
SUB_BLOCK_SIZE
Gets the sub-block size.
|
EXTENSION_INTRODUCER
Constructor and Description |
---|
GifGraphicsControlBlock()
Initializes a new instance of the
GifGraphicsControlBlock class. |
GifGraphicsControlBlock(byte flags,
int delayTime,
byte transparentColorIndex)
Initializes a new instance of the
GifGraphicsControlBlock class. |
GifGraphicsControlBlock(int delayTime,
boolean hasTransparentColor,
byte transparentColorIndex,
boolean requiresUserInput,
int disposalMethod)
Initializes a new instance of the
GifGraphicsControlBlock class. |
Modifier and Type | Method and Description |
---|---|
static byte |
createFlags(boolean hasTransparentColor,
boolean requiresUserInput,
int disposalMethod)
Creates the flags.
|
int |
getDelayTime()
Gets or sets the frame delay time expressed in 1/100 seconds.
|
int |
getDisposalMethod()
Gets or sets the disposal method.
|
byte |
getFlags()
Gets or sets the flags.
|
byte |
getTransparentColorIndex()
Gets or sets the transparent color index.
|
boolean |
getUserInputExpected()
Gets or sets a value indicating whether user input is expected.
|
boolean |
hasTransparentColor()
Gets or sets a value indicating whether graphics control block has transparent color.
|
void |
setDelayTime(int value)
Gets or sets the frame delay time expressed in 1/100 seconds.
|
void |
setDisposalMethod(int value)
Gets or sets the disposal method.
|
void |
setFlags(byte value)
Gets or sets the flags.
|
void |
setTransparentColor(boolean value)
Gets or sets a value indicating whether graphics control block has transparent color.
|
void |
setTransparentColorIndex(byte value)
Gets or sets the transparent color index.
|
void |
setUserInputExpected(boolean value)
Gets or sets a value indicating whether user input is expected.
|
isChanged, save, setChanged
public static final int BLOCK_HEADER_SIZE
Specifies the block header size.
public static final byte EXTENSION_LABEL
Extension label.
public static final byte SUB_BLOCK_SIZE
Gets the sub-block size.
public GifGraphicsControlBlock()
Initializes a new instance of the GifGraphicsControlBlock
class.
public GifGraphicsControlBlock(byte flags, int delayTime, byte transparentColorIndex)
Initializes a new instance of the GifGraphicsControlBlock
class.
flags
- The flags.delayTime
- The delay time expressed in 1/100 seconds.transparentColorIndex
- The transparent color index.public GifGraphicsControlBlock(int delayTime, boolean hasTransparentColor, byte transparentColorIndex, boolean requiresUserInput, int disposalMethod)
Initializes a new instance of the GifGraphicsControlBlock
class.
delayTime
- The delay time expressed in 1/100 seconds.hasTransparentColor
- if set to true
the transparentColorIndex
is valid.transparentColorIndex
- The transparent color index.requiresUserInput
- if set to true
the user input is expected.disposalMethod
- The disposal method.public int getDelayTime()
Gets or sets the frame delay time expressed in 1/100 seconds.
public void setDelayTime(int value)
Gets or sets the frame delay time expressed in 1/100 seconds.
public byte getFlags()
Gets or sets the flags.
Value: The flags.public void setFlags(byte value)
Gets or sets the flags.
Value: The flags.public byte getTransparentColorIndex()
Gets or sets the transparent color index.
Value: The transparent color index.public void setTransparentColorIndex(byte value)
Gets or sets the transparent color index.
Value: The transparent color index.public int getDisposalMethod()
Gets or sets the disposal method.
Value: The disposal method.public void setDisposalMethod(int value)
Gets or sets the disposal method.
Value: The disposal method.public boolean getUserInputExpected()
Gets or sets a value indicating whether user input is expected.
Value:true
if user input is expected; otherwise, false
.public void setUserInputExpected(boolean value)
Gets or sets a value indicating whether user input is expected.
Value:true
if user input is expected; otherwise, false
.public boolean hasTransparentColor()
Gets or sets a value indicating whether graphics control block has transparent color.
Value:true
if graphics control block has transparent color; otherwise, false
.public void setTransparentColor(boolean value)
Gets or sets a value indicating whether graphics control block has transparent color.
Value:true
if graphics control block has transparent color; otherwise, false
.public static byte createFlags(boolean hasTransparentColor, boolean requiresUserInput, int disposalMethod)
Creates the flags.
hasTransparentColor
- if set to true
the GifGraphicsControlBlock
has valid transparent color index.requiresUserInput
- if set to true
the user input is expected.disposalMethod
- The disposal method.