Color of a screen pixel: Difference between revisions

Content added Content deleted
(→‎{{header|C++}}: This most certainly is C++/CLI)
m (→‎{{header|C}}: winApi)
Line 14: Line 14:


=={{header|C}}==
=={{header|C}}==
{{works with|Windows}}
{{works with|Windows}}. It uses Windows API

<lang c>COLORREF getColorAtCursor(void) {

<lang c>
#include <windows.h>

COLORREF getColorAtCursor(void) {
POINT p;
POINT p;
COLORREF color;
COLORREF color;