This is what I have so far:
HDC hdcScreen = GetDC(0);
COLORREF color = GetPixel(hdcScreen, 200, 200);
ReleaseDC(NULL, hdcScreen);
int iRed = GetRValue(color);
int iBlue = GetBValue(color);
int iGreen = GetGValue(color);
cout << iRed << "\n";
cout << iBlue << "\n";
cout << iGreen << "\n";
It doesn't get the same pixel on my laptop because of the resolution difference. What should I do?

New Topic/Question
Reply



MultiQuote





|