PixelFarm.Agg.Imaging.ImgSpanGenRGBA_BilinearClip.BlendInFilterPixel C# (CSharp) Method

BlendInFilterPixel() static private method

static private BlendInFilterPixel ( int &accColor0, int &accColor1, int &accColor2, int &accColor3, byte srcBuffer, int bufferIndex, int weight ) : void
accColor0 int
accColor1 int
accColor2 int
accColor3 int
srcBuffer byte
bufferIndex int
weight int
return void
        static void BlendInFilterPixel(ref int accColor0, ref int accColor1, ref int accColor2, ref int accColor3,
            byte[] srcBuffer, int bufferIndex, int weight)
        {
            unchecked
            {
                accColor0 += weight * srcBuffer[bufferIndex + CO.R];
                accColor1 += weight * srcBuffer[bufferIndex + CO.G];
                accColor2 += weight * srcBuffer[bufferIndex + CO.B];
                accColor3 += weight * srcBuffer[bufferIndex + CO.A];
            }
        }
    }