| |
|
| java.lang.Object com.lowagie.text.pdf.codec.GifImage
GifImage | public class GifImage (Code) | | Reads gif images of all types. All the images in a gif are read in the constructors
and can be retrieved with other methods.
author: Paulo Soares (psoares@consiste.pt) |
Inner Class :static class GifFrame | |
MaxStackSize | final protected static int MaxStackSize(Code) | | |
bgColor | protected int bgColor(Code) | | |
bgIndex | protected int bgIndex(Code) | | |
block | protected byte[] block(Code) | | |
blockSize | protected int blockSize(Code) | | |
delay | protected int delay(Code) | | |
dispose | protected int dispose(Code) | | |
fromData | protected byte fromData(Code) | | |
gctFlag | protected boolean gctFlag(Code) | | |
height | protected int height(Code) | | |
interlace | protected boolean interlace(Code) | | |
ixiyiwih | protected int ixiyiwih(Code) | | |
lctFlag | protected boolean lctFlag(Code) | | |
lctSize | protected int lctSize(Code) | | |
m_bpc | protected int m_bpc(Code) | | |
m_curr_table | protected byte m_curr_table(Code) | | |
m_gbpc | protected int m_gbpc(Code) | | |
m_global_table | protected byte m_global_table(Code) | | |
m_line_stride | protected int m_line_stride(Code) | | |
m_local_table | protected byte m_local_table(Code) | | |
m_out | protected byte m_out(Code) | | |
pixelAspect | protected int pixelAspect(Code) | | |
pixelStack | protected byte[] pixelStack(Code) | | |
pixels | protected byte[] pixels(Code) | | |
prefix | protected short[] prefix(Code) | | |
suffix | protected byte[] suffix(Code) | | |
transIndex | protected int transIndex(Code) | | |
transparency | protected boolean transparency(Code) | | |
width | protected int width(Code) | | |
GifImage | public GifImage(byte data) throws IOException(Code) | | Reads gif images from a byte array.
Parameters: data - the byte array throws: IOException - on error |
getFrameCount | public int getFrameCount()(Code) | | Gets the number of frames the gif has.
the number of frames the gif has |
getFramePosition | public int[] getFramePosition(int frame)(Code) | | Gets the [x,y] position of the frame in reference to the
logical screen.
Parameters: frame - the frame the [x,y] position of the frame |
getImage | public Image getImage(int frame)(Code) | | Gets the image from a frame. The first frame is 1.
Parameters: frame - the frame to get the image from the image |
getLogicalScreen | public int[] getLogicalScreen()(Code) | | Gets the logical screen. The images may be smaller and placed
in some position in this screen to playback some animation.
No image will be be bigger that this.
the logical screen dimensions as [x,y] |
newBpc | protected static int newBpc(int bpc)(Code) | | |
readBlock | protected int readBlock() throws IOException(Code) | | Reads next variable length block from input.
number of bytes stored in "buffer" |
readGraphicControlExt | protected void readGraphicControlExt() throws IOException(Code) | | Reads Graphics Control Extension values
|
readHeader | protected void readHeader() throws IOException(Code) | | Reads GIF file header information.
|
readLSD | protected void readLSD() throws IOException(Code) | | Reads Logical Screen Descriptor
|
readShort | protected int readShort() throws IOException(Code) | | Reads next 16-bit value, LSB first
|
resetFrame | protected void resetFrame()(Code) | | Resets frame state for reading next image.
|
setPixel | protected void setPixel(int x, int y, int v)(Code) | | |
skip | protected void skip() throws IOException(Code) | | Skips variable length blocks up to and including
next zero length block.
|
|
|
|