System.Drawing.Bitmap.RectangularCopy C# (CSharp) Method

RectangularCopy() static private method

static private RectangularCopy ( byte dstScanLine, byte srcScanLine, int dstStride, int srcStride, int width, int height, int sizeOfPixel ) : void
dstScanLine byte
srcScanLine byte
dstStride int
srcStride int
width int
height int
sizeOfPixel int
return void
        static unsafe void RectangularCopy( byte* dstScanLine, byte* srcScanLine, int dstStride, int srcStride, int width, int height, int sizeOfPixel )
        {
            byte* srcRow = srcScanLine;
            byte* dstRow = dstScanLine;
            for( int y = 0; y < height; ++y ) {
                memcpy( dstRow, srcRow, sizeOfPixel * width );
                srcRow += srcStride;
                dstRow += dstStride;
            }
        }