it depends on what system for are working on Windows you best use bitmaps and the GDI.
My favourite articel
CXImage about working with bitmaps.
To set a pixel you can use the
SetPixel after loading it in a DC. Adavanced is directly access the memory of the bitmap.