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>getpixel</b> get rgb value of a pixel http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GetPixel             Get RGB Value Of A Pixel

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

Returns:        RGB color value of -1 if point is not within clipping region.

Note:           Use GetDeviceCaps RC_BITBLT to determine if device can
                handle GetPixel.

See Also: GetDeviceCaps

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