Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>setpixel</b> set pixel to color http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SetPixel             Set Pixel To Color

DWORD SetPixel(hDC, X, Y, rgbColor)
HDC hDC;
short X; /* Logical X coordinate */
short Y; /* Logical Y coordinate */
DWORD rgbColor;

Returns:        Actual RGB color set or -1 if point is not
                within clipping region.

Note:           Use SetDeviceCaps RC_BITBLT to determine if device can
                handle SetPixel.

                Return value is often different than requested color
                depending on capabilities of device.

See Also: GetDeviceCaps GetPixel

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson