Editing images

Hey JGO,

How exactly could i create an image of a set width and height and draw to it programmatically, pixel by pixel?

Thanks