BitMiracle.LibTiff.Classic.TiffRgbaImage.CMAP C# (CSharp) Method

CMAP() private method

Palette images with <= 8 bits/sample are handled with a table to avoid lots of shifts and masks. The table is setup so that put*cmaptile (below) can retrieve 8 / bitspersample pixel values simply by indexing into the table with one number.
private CMAP ( int x, int i, int &j ) : void
x int
i int
j int
return void
        private void CMAP(int x, int i, ref int j)
        {
            PALmap[i][j++] = PACK(redcmap[x] & 0xff, greencmap[x] & 0xff, bluecmap[x] & 0xff);
        }