I got this out of qb4all.com's tutorials:
This is a topic that most budding game programmers would love to master,
but many just don't know where to start. Pixel by pixel scrolling is
actually pretty simple, there's a bit of math involved in getting the moving
pixels in the right place, but...