Save This Page
Home » iText-2.1.7 » com.lowagie » text » pdf » codec » [javadoc | source]
com.lowagie.text.pdf.codec
public class: GifImage [javadoc | source]
java.lang.Object
   com.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.
Nested Class Summary:
static class  GifImage.GifFrame   
Field Summary
protected  DataInputStream in     
protected  int width     
protected  int height     
protected  boolean gctFlag     
protected  int bgIndex     
protected  int bgColor     
protected  int pixelAspect     
protected  boolean lctFlag     
protected  boolean interlace     
protected  int lctSize     
protected  int ix     
protected  int iy     
protected  int iw     
protected  int ih     
protected  byte[] block     
protected  int blockSize     
protected  int dispose     
protected  boolean transparency     
protected  int delay     
protected  int transIndex     
protected static final  int MaxStackSize     
protected  short[] prefix     
protected  byte[] suffix     
protected  byte[] pixelStack     
protected  byte[] pixels     
protected  byte[] m_out     
protected  int m_bpc     
protected  int m_gbpc     
protected  byte[] m_global_table     
protected  byte[] m_local_table     
protected  byte[] m_curr_table     
protected  int m_line_stride     
protected  byte[] fromData     
protected  URL fromUrl     
protected  ArrayList frames     
Constructor:
 public GifImage(URL url) throws IOException 
    Reads gif images from an URL.
    Parameters:
    url - the URL
    Throws:
    IOException - on error
 public GifImage(String file) throws IOException 
    Reads gif images from a file.
    Parameters:
    file - the file
    Throws:
    IOException - on error
 public GifImage(byte[] data) throws IOException 
    Reads gif images from a byte array.
    Parameters:
    data - the byte array
    Throws:
    IOException - on error
 public GifImage(InputStream is) throws IOException 
    Reads gif images from a stream. The stream is not closed.
    Parameters:
    is - the stream
    Throws:
    IOException - on error
Method from com.lowagie.text.pdf.codec.GifImage Summary:
decodeImageData,   getFrameCount,   getFramePosition,   getImage,   getLogicalScreen,   newBpc,   process,   readBlock,   readColorTable,   readContents,   readGraphicControlExt,   readHeader,   readImage,   readLSD,   readShort,   resetFrame,   setPixel,   skip
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.codec.GifImage Detail:
 protected boolean decodeImageData() throws IOException 
 public int getFrameCount() 
    Gets the number of frames the gif has.
 public int[] getFramePosition(int frame) 
    Gets the [x,y] position of the frame in reference to the logical screen.
 public Image getImage(int frame) 
    Gets the image from a frame. The first frame is 1.
 public int[] getLogicalScreen() 
    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.
 protected static int newBpc(int bpc) 
  void process(InputStream is) throws IOException 
 protected int readBlock() throws IOException 
    Reads next variable length block from input.
 protected byte[] readColorTable(int bpc) throws IOException 
 protected  void readContents() throws IOException 
 protected  void readGraphicControlExt() throws IOException 
    Reads Graphics Control Extension values
 protected  void readHeader() throws IOException 
    Reads GIF file header information.
 protected  void readImage() throws IOException 
    Reads next frame image
 protected  void readLSD() throws IOException 
    Reads Logical Screen Descriptor
 protected int readShort() throws IOException 
    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() throws IOException 
    Skips variable length blocks up to and including next zero length block.