I think you all are getting fixated on hi-level graphical APIs. There's one unit that would perfectly help with drawing B&W image.

Hint: It is there since Turbo Pascal and on FPC it pops a window.