|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.fileformats.gif.GifBlock
com.aspose.imaging.fileformats.gif.blocks.GifGraphicsControlBlock
public class GifGraphicsControlBlock
Gif graphics control block.
Field Summary | |
---|---|
static int |
BlockHeaderSize
Specifies the block header size. |
static byte |
ExtensionLabel
Extension label. |
static byte |
SubBlockSize
Gets the sub-block size. |
Fields inherited from class com.aspose.imaging.fileformats.gif.GifBlock |
---|
ExtensionIntroducer |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
hasTransparentColor(boolean value)
|
void |
save(java.io.InputStream stream)
Saves the block to the specified InputStream. |
void |
saveInternal(Stream stream)
Saves the block to the specified stream. |
void |
setDelayTime(int value)
|
void |
setDisposalMethod(int value)
|
void |
setFlags(byte value)
|
void |
setTransparentColorIndex(byte value)
|
void |
setUserInputExpected(boolean value)
|
Methods inherited from class com.aspose.imaging.fileformats.gif.GifBlock |
---|
isChanged, isChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BlockHeaderSize
Specifies the block header size.
public static final byte ExtensionLabel
Extension label.
public static final byte SubBlockSize
Gets the sub-block size.
Constructor Detail |
---|
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.Method Detail |
---|
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.
public int getDelayTime()
Gets or sets the frame delay time expressed in 1/100 seconds.
public int getDisposalMethod()
Gets or sets the disposal method.
Value: The disposal method.
public byte getFlags()
Gets or sets the flags.
Value: The flags.
public byte getTransparentColorIndex()
Gets or sets the transparent color index.
Value: The transparent color index.
public boolean getUserInputExpected()
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 hasTransparentColor(boolean value)
public void save(java.io.InputStream stream)
GifBlock
Saves the block to the specified InputStream.
save
in interface IGifBlock
save
in class GifBlock
public void saveInternal(Stream stream)
Saves the block to the specified stream.
saveInternal
in interface IGifBlock
saveInternal
in class GifBlock
stream
- The stream to save data to.public void setDelayTime(int value)
public void setDisposalMethod(int value)
public void setFlags(byte value)
public void setTransparentColorIndex(byte value)
public void setUserInputExpected(boolean value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |