Package 

Object Gif.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Result<Gif> from(File file, PixelPacking pixelPacking) Open a gif file, using a java.io.RandomAccessFile to access the data: The gif wont be loaded fully in memory.
      final Result<Gif> from(InputStream inputStream, PixelPacking pixelPacking) Load a gif from an InputStream: The InputStream will be fully read and loaded in memory.
      final Gif from(Gif gif) Creates a new gif from an existing gif.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • from

         final Result<Gif> from(File file, PixelPacking pixelPacking)

        Open a gif file, using a java.io.RandomAccessFile to access the data: The gif wont be loaded fully in memory. It allows handling crazy big files, as some gifs are actually several hundred mega byte big, as some users seem to mistake them for movie files.

        Parameters:
        file - The file to open
        pixelPacking - Optional pixel packing, default to ARGB.
      • from

         final Result<Gif> from(InputStream inputStream, PixelPacking pixelPacking)

        Load a gif from an InputStream: The InputStream will be fully read and loaded in memory.

        Parameters:
        inputStream - The input stream containing the gif data.
        pixelPacking - Optional pixel packing, default to ARGB.
      • from

         final Gif from(Gif gif)

        Creates a new gif from an existing gif.