public class GifImage extends Object
| Constructor and Description |
|---|
GifImage(byte[] data)
Reads gif images from a byte array.
|
GifImage(URL url)
Reads gif images from an URL.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFrameCount()
Gets the number of frames the gif has.
|
Image |
getImage(int frame)
Gets the image from a frame.
|
int[] |
getLogicalScreen()
Gets the logical screen.
|
public GifImage(URL url) throws IOException
url - the URLIOException - on errorpublic GifImage(byte[] data)
throws IOException
data - the byte arrayIOException - on errorpublic int getFrameCount()
public Image getImage(int frame)
frame - the frame to get the image frompublic int[] getLogicalScreen()
Copyright © 2021. All rights reserved.