int width = 256;
BufferedImage bigImage = new BufferedImage(width * 6, height * 6, BufferedImage.TYPE_INT_RGB);
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
Graphics g = ge.createGraphics(bigImage);
Toolkit tk = Toolkit.getDefaultToolkit();
for (int x = 0; x < 6; x++) {
for (int y = 0; y < 6; y++) {
int[] pixels = decompressSubframe(x, y, colortable);
java.awt.Image bitmap = tk.createImage(new MemoryImageSource(width, height, pixels, 0, width));
g.drawImage(bitmap, x * 256, y * 256, null);
}
}