protected byte[] ReadColorTable(int bpc) { int ncolors = 1 << bpc; int nbytes = 3*ncolors; bpc = NewBpc(bpc); byte[] table = new byte[(1 << bpc) * 3]; ReadFully(table, 0, nbytes); return table; }