Class GIFMakerImageIO

  • All Implemented Interfaces:
    IGIFMaker

    public class GIFMakerImageIO
    extends java.lang.Object
    implements IGIFMaker
    Implementation for PC Version using GIFDecoder and java.imageio
    Author:
    Selina Wernike
    See Also:
    GifDecoder
    • Constructor Summary

      Constructors 
      Constructor Description
      GIFMakerImageIO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] sequenzGIF​(byte[][] framesGIF)
      Creates a GIF from several single gif.
      byte[] sequenzGIFImageIO​(byte[][] gifs)
      Deprecated.
      byte[][] splitGIF​(byte[] animatedGIF)
      Splits the GIF into singular Frames
      byte[][] splitGifImageIO​(byte[] animatedGif)
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GIFMakerImageIO

        public GIFMakerImageIO()
    • Method Detail

      • splitGIF

        public byte[][] splitGIF​(byte[] animatedGIF)
                          throws UnsupportedImageTypeException
        Description copied from interface: IGIFMaker
        Splits the GIF into singular Frames
        Specified by:
        splitGIF in interface IGIFMaker
        Parameters:
        animatedGIF - a byte array with the animated gif, that needs to be splitted
        Returns:
        byte[][] output an two dimensional array which contains all gif data
        Throws:
        UnsupportedImageTypeException - When image is not a gif
        See Also:
        GifDecoder
      • sequenzGIF

        public byte[] sequenzGIF​(byte[][] framesGIF)
        Creates a GIF from several single gif. If a delay exists it will be set in the Metadata
        Specified by:
        sequenzGIF in interface IGIFMaker
        Parameters:
        framesGIF - Single Gif images
        Returns:
        byte[] Single GIF that loops
      • splitGifImageIO

        @Deprecated
        public byte[][] splitGifImageIO​(byte[] animatedGif)
                                 throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • sequenzGIFImageIO

        @Deprecated
        public byte[] sequenzGIFImageIO​(byte[][] gifs)
        Deprecated.