Class GifHeader


  • public class GifHeader
    extends java.lang.Object
    A header object containing the number of frames in an animated GIF image as well as basic metadata like width and height that can be used to decode each individual frame of the GIF. Can be shared by one or more GifDecoders to play the same animated GIF in multiple views.
    See Also:
    GIF 89a Specification
    • Field Detail

      • NETSCAPE_LOOP_COUNT_FOREVER

        public static final int NETSCAPE_LOOP_COUNT_FOREVER
        The "Netscape" loop count which means loop forever.
        See Also:
        Constant Field Values
      • NETSCAPE_LOOP_COUNT_DOES_NOT_EXIST

        public static final int NETSCAPE_LOOP_COUNT_DOES_NOT_EXIST
        Indicates that this header has no "Netscape" loop count.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GifHeader

        public GifHeader()
    • Method Detail

      • getHeight

        public int getHeight()
      • getWidth

        public int getWidth()
      • getNumFrames

        public int getNumFrames()
      • getStatus

        public int getStatus()
        Global status code of GIF data parsing.