com.lowagie.text.pdf.codec
public class GifImage extends Object
Nested Class Summary | |
---|---|
static class | GifImage.GifFrame |
Field Summary | |
---|---|
protected int | bgColor |
protected int | bgIndex |
protected byte[] | block |
protected int | blockSize |
protected int | delay |
protected int | dispose |
protected ArrayList | frames |
protected byte[] | fromData |
protected URL | fromUrl |
protected boolean | gctFlag |
protected int | height |
protected int | ih |
protected DataInputStream | in |
protected boolean | interlace |
protected int | iw |
protected int | ix |
protected int | iy |
protected boolean | lctFlag |
protected int | lctSize |
protected int | m_bpc |
protected byte[] | m_curr_table |
protected int | m_gbpc |
protected byte[] | m_global_table |
protected int | m_line_stride |
protected byte[] | m_local_table |
protected byte[] | m_out |
protected static int | MaxStackSize |
protected int | pixelAspect |
protected byte[] | pixels |
protected byte[] | pixelStack |
protected short[] | prefix |
protected byte[] | suffix |
protected int | transIndex |
protected boolean | transparency |
protected int | width |
Constructor Summary | |
---|---|
GifImage(URL url) Reads gif images from an URL. | |
GifImage(String file) Reads gif images from a file. | |
GifImage(byte[] data) Reads gif images from a byte array. | |
GifImage(InputStream is) Reads gif images from a stream. |
Method Summary | |
---|---|
protected boolean | decodeImageData() |
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. |
protected static int | newBpc(int bpc) |
void | process(InputStream is) |
protected int | readBlock()
Reads next variable length block from input.
|
protected byte[] | readColorTable(int bpc) |
protected void | readContents() |
protected void | readGraphicControlExt()
Reads Graphics Control Extension values |
protected void | readHeader()
Reads GIF file header information. |
protected void | readImage()
Reads next frame image |
protected void | readLSD()
Reads Logical Screen Descriptor |
protected int | readShort()
Reads next 16-bit value, LSB first |
protected void | resetFrame()
Resets frame state for reading next image. |
protected void | setPixel(int x, int y, int v) |
protected void | skip()
Skips variable length blocks up to and including
next zero length block. |
Parameters: url the URL
Throws: IOException on error
Parameters: file the file
Throws: IOException on error
Parameters: data the byte array
Throws: IOException on error
Parameters: is the stream
Throws: IOException on error
Returns: the number of frames the gif has
Parameters: frame the frame
Returns: the [x,y] position of the frame
Parameters: frame the frame to get the image from
Returns: the image
Returns: the logical screen dimensions as [x,y]
Returns: number of bytes stored in "buffer"