|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.lowagie.text.pdf.codec.GifImage
Reads gif images of all types. All the images in a gif are read in the constructors and can be retrieved with other methods.
| Constructor Summary | |
GifImage(byte[] data)
Reads gif images from a byte array. |
|
GifImage(InputStream is)
Reads gif images from a stream. |
|
GifImage(String file)
Reads gif images from a file. |
|
GifImage(URL url)
Reads gif images from an URL. |
|
| Method Summary | |
int |
getFrameCount()
Gets the number of frames the gif has. |
int[] |
getFramePosition(int frame)
Gets the [x,y] position of the frame in reference to the logical screen. |
Image |
getImage(int frame)
Gets the image from a frame. |
int[] |
getLogicalScreen()
Gets the logical screen. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GifImage(URL url)
throws IOException
url - the URL
IOException - on error
public GifImage(String file)
throws IOException
file - the file
IOException - on error
public GifImage(byte[] data)
throws IOException
data - the byte array
IOException - on error
public GifImage(InputStream is)
throws IOException
is - the stream
IOException - on error| Method Detail |
public int getFrameCount()
public Image getImage(int frame)
frame - the frame to get the image from
public int[] getFramePosition(int frame)
frame - the frame
public int[] getLogicalScreen()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||