getPixel?

At a programming camp I've been going to, one of the instructors showed us some of the programs he made in C++, and when I asked him what library he used, and he said none. He said he used the getPixel and setPixel functions for drawing things. What exactly are these functions? Why don't they get highlighted when I type them into VC++?
when I asked him what library he used, and he said none. He said he used the getPixel and setPixel functions for drawing things.


He lied. Or maybe he just misunderstood the question. He had to have been using a library.
If you're talking about GetPixel and SetPixel on Windows then he was using the Gdi32.lib
That's probably it. What's the header for it?
Last edited on
<windows.h>
Heh, had a feeling. :P

The pixel functions are slow, aren't they?
Yes. Very.

Back when I worked with WinGDI, the way to do pixel-level drawing was all about CreateDIBSection.
Topic archived. No new replies allowed.