this is all i can remember, I think i also used this bmp to generate the field.
Quote:
int eofi,x,y,mm,nn;
int subcounter = 0;
ArrayList tempList = new ArrayList();
eofi = dis.readUnsignedByte();
x = dis.readUnsignedByte();
y = dis.readUnsignedByte();
tempList.add(new Integer(indicator));
tempList.add(new Integer(eofi));
tempList.add(new Integer(x));
tempList.add(new Integer(y));
while (subcounter<126){
int temp = dis.readUnsignedByte();
tempList.add(new Integer(temp));
subcounter++;
}
counter++;
if (!check){
dos.writeByte(((Integer)tempList.get(0)).intValue( ));
dos.writeByte(((Integer)tempList.get(1)).intValue( ));
for (int i = 2; i < tempList.size(); i++){
dos.writeByte(((Integer)tempList.get(i)).intValue( ));
}
}else{
dos.writeByte(128); //80
dos.writeByte(0); //00
for (int i = 0 ; i < 64; i ++){
int aa,bb,cc,dd,flo,bound;
int ticker = 2*i;
x = ((Integer)tempList.get(ticker+2)).intValue();
y = ((Integer)tempList.get(ticker+3)).intValue();
bb = (y << 8);
bound = x|bb;
bound = (bound & ~maskC);
flo = bound;
cc = (flo & ~maskB);
dd = (flo & ~maskA);
cc = (cc << 8);
dd = (dd >> 8);
flo = cc|dd;
flo = (flo & ~maskC);
dos.writeByte(2); //02
dos.writeByte(0); //00
dos.writeShort(flo);
dos.writeShort(0x6FDA);
}
}
|