How would I get the colour of a pixel within a program using the windows library in cpp?

前端 未结 0 720
北海茫月
北海茫月 2021-01-05 07:28

I know how to get the colour of a certain pixel on the screen via:

HDC dc = GetDC(NULL);
COLORREF color = GetPixel(dc, x, y);

However,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题