Creating pixel graphics in MFC
I am working on a project that takes a file with a lot of x,y coordinates and a number, for how bright/dark a pixel should be, and shows all of these on the screen.
The result should be a sonar image of the sea floor, and the darker pixel's are in one area, the deeper it is there.
What I am having trouble with is choosing a method to display all of these points on my screen. How do I draw one pixel at a time (or 5 pixels at a time (in case 1 pixel is to small)), and set the pixels brightness?). The picture is in gray tones.
I am programming with C++ MfC, in the latest .Net edition of Visual C++
does anyone have a good suggestion?