ri.imagedata = new byte[0];
ri.colortable = new int[0];
} else {
ri.imagedata = riid.imageData;
RpfColortable colortable = currentCache.getColortable();
ri.colortable = new int[colortable.colors.length];
for (int i = 0; i < colortable.colors.length; i++) {
ri.colortable[i] = colortable.colors[i].getRGB();
}