see also 

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3983 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 9099ea0c88
commit d477773fa3

@ -173,10 +173,14 @@ public class ymageBMPParser {
for (int columns = 0; columns < width; columns = columns + 4) {
b = ((int) s[offset + n] & 0xff);
n++;
image.setRGB(columns, (height - rows - 1), colortable.colorindex[(b & 0xc0) >> 6]);
image.setRGB(columns + 1, (height - rows - 1), colortable.colorindex[(b & 0x30) >> 4]);
image.setRGB(columns + 2, (height - rows - 1), colortable.colorindex[(b & 0xc) >> 2]);
image.setRGB(columns + 3, (height - rows - 1), colortable.colorindex[b & 0x3]);
image.setRGB(columns, (height - rows - 1), colortable.colorindex[(b & 0x80) >> 7]);
image.setRGB(columns + 1, (height - rows - 1), colortable.colorindex[(b & 0x40) >> 6]);
image.setRGB(columns + 2, (height - rows - 1), colortable.colorindex[(b & 0x20) >> 5]);
image.setRGB(columns + 3, (height - rows - 1), colortable.colorindex[(b & 0x10) >> 4]);
image.setRGB(columns + 4, (height - rows - 1), colortable.colorindex[(b & 0x08) >> 3]);
image.setRGB(columns + 5, (height - rows - 1), colortable.colorindex[(b & 0x04) >> 2]);
image.setRGB(columns + 6, (height - rows - 1), colortable.colorindex[(b & 0x02) >> 1]);
image.setRGB(columns + 7, (height - rows - 1), colortable.colorindex[ b & 0x01]);
}
n += fill4(n);
}

Loading…
Cancel
Save