Package com.sksamuel.scrimage.nio
Class OpenGifReader
- java.lang.Object
-
- com.sksamuel.scrimage.nio.OpenGifReader
-
- All Implemented Interfaces:
ImageReader
public class OpenGifReader extends java.lang.Object implements ImageReader
-
-
Constructor Summary
Constructors Constructor Description OpenGifReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableImage
read(byte[] bytes, java.awt.Rectangle rectangle)
java.util.List<ImmutableImage>
readAll(byte[] bytes)
Returns all frames from a GIF.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sksamuel.scrimage.nio.ImageReader
read
-
-
-
-
Method Detail
-
read
public ImmutableImage read(byte[] bytes, java.awt.Rectangle rectangle) throws java.io.IOException
- Specified by:
read
in interfaceImageReader
- Throws:
java.io.IOException
-
readAll
public java.util.List<ImmutableImage> readAll(byte[] bytes) throws java.io.IOException
Returns all frames from a GIF.- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-