iTextSharp.text.pdf.codec.GifImage.ReadColorTable C# (CSharp) Method

ReadColorTable() protected method

protected ReadColorTable ( int bpc ) : byte[]
bpc int
return byte[]
        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;
        }