c
const BYTE* pDstStart = pDstData;
pDstStart += nYDst * nDstStep; // First, offset by rows
pDstStart += nXDst * dstBytesPerPixel; // Then, offset by columns
