public virtual int getPaletteChannelBits(int c) { return pbox == null ? 0 : (int)pbox.getBitDepth(c); }