-
public final class GifRepresentation of the gif, with methods to decode frames. This class's methods are not thread safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGif.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegercurrentIndexprivate final LongcurrentDelayprivate final Dimensiondimensionprivate final IntegerframeCountprivate final LoopCountloopCountprivate final DoubleaspectRatioprivate final IntegerbackgroundColorprivate final BooleanisAnimated
-
Constructor Summary
Constructors Constructor Description Gif(GifDescriptor gifDescriptor)
-
Method Summary
Modifier and Type Method Description final IntegergetCurrentIndex()final LonggetCurrentDelay()final DimensiongetDimension()final IntegergetFrameCount()final LoopCountgetLoopCount()final DoublegetAspectRatio()final IntegergetBackgroundColor()final BooleangetIsAnimated()final Unitadvance()Advance the frame index, and loop back to zero after the last frame. final BooleangetCurrentFrame(IntArray inPixels)Write the current frame in the int array. final IntArraygetFrame(Integer index)final BooleangetFrame(Integer index, IntArray inPixels)-
-
Constructor Detail
-
Gif
Gif(GifDescriptor gifDescriptor)
-
-
Method Detail
-
getCurrentIndex
final Integer getCurrentIndex()
-
getCurrentDelay
final Long getCurrentDelay()
-
getDimension
final Dimension getDimension()
-
getFrameCount
final Integer getFrameCount()
-
getLoopCount
final LoopCount getLoopCount()
-
getAspectRatio
final Double getAspectRatio()
-
getBackgroundColor
final Integer getBackgroundColor()
-
getIsAnimated
final Boolean getIsAnimated()
-
advance
final Unit advance()
Advance the frame index, and loop back to zero after the last frame. Does not care about loop count.
-
getCurrentFrame
final Boolean getCurrentFrame(IntArray inPixels)
Write the current frame in the int array.
- Parameters:
inPixels- The buffer where the pixel will be written
-
-
-
-