Maybe this thread can help you a bit:

http://www.pascalgamedevelopment.com/showthread.php?6168-I-need-some-help-with-2D-drawing-libraries


The first part is about pixel-perfect drawing.