case PNGSaver.COLOR_MODE:
{
byte[] row = new byte[width * 3];
for (int y = 0; y < height; y++) {
inflater.inflate(new byte[1]);
inflater.inflate(row);
for (int x = 0; x < width; x++) {
colors[0] = (row[x * 3 + 0]&0xff);
colors[1] = (row[x * 3 + 1]&0xff);
colors[2] = (row[x * 3 + 2]&0xff);
setColors(result, x, y, colors);