protected void readBitmap(){
  currentFrame.ix=readShort();
  currentFrame.iy=readShort();
  currentFrame.iw=readShort();
  currentFrame.ih=readShort();
  final int packed=read();
  lctFlag=(packed & 0x80) != 0;
  lctSize=(int)Math.pow(2,(packed & 0x07) + 1);
  currentFrame.interlace=(packed & 0x40) != 0;
  if (lctFlag) {
    currentFrame.lct=readColorTable(lctSize);
  }
 else {
    currentFrame.lct=null;
  }
  currentFrame.bufferFrameStart=rawData.position();
  skipBitmapData();
  if (err()) {
    return;
  }
  frameCount++;
  frames.add(currentFrame);
}

protected void readBitmap ( ) { currentFrame . ix = readShort ( ) ; currentFrame . iy = readShort ( ) ; currentFrame . iw = readShort ( ) ; currentFrame . ih = readShort ( ) ; final int packed = read ( ) ; lctFlag = ( packed & 0x80 ) != 0 ; lctSize = ( int ) Math . pow ( 2 , ( packed & 0x07 ) + 1 ) ; currentFrame . interlace = ( packed & 0x40 ) != 0 ; if ( lctFlag ) { currentFrame . lct = readColorTable ( lctSize ) ; } else { currentFrame . lct = null ; } currentFrame . bufferFrameStart = rawData . position ( ) ; skipBitmapData ( ) ; if ( err ( ) ) { return ; } frameCount ++ ; frames . add ( currentFrame ) ; }
reads next frame image
