Squish.ColourSet.RemapIndices C# (CSharp) Method

RemapIndices() public method

public RemapIndices ( byte source, byte target, int targetOffset ) : void
source byte
target byte
targetOffset int
return void
        public void RemapIndices(byte[] source, byte[] target, int targetOffset)
        {
            for (int i = 0; i < 16; ++i)
            {
                var j = this._Remap[i];
                if (j == -1)
                {
                    target[i + targetOffset] = 3;
                }
                else
                {
                    target[i + targetOffset] = source[j];
                }
            }
        }