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

GREY() private method

Greyscale images with less than 8 bits/sample are handled with a table to avoid lots of shifts and masks. The table is setup so that put*bwtile (below) can retrieve 8 / bitspersample pixel values simply by indexing into the table with one number.
private GREY ( int x, int i, int &j ) : void
x int
i int
j int
return void
        private void GREY(int x, int i, ref int j)
        {
            int c = Map[x];
            BWmap[i][j++] = PACK(c, c, c);
        }