Color of a pixel set by coordinates
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hello I have a HWND of a window and the coordinates of the pixel. How can I get a current color of this pixel? The window is from another application. Thank you in advance
hi.. if you know that coordinate's of pixel,you can use this function.
COLORREF GetPixel(
int x,
int y
)like this..
COLORREF color;
color=GetPixel(10,10);
int red=GetRValue(color);
int blue=GetBValue(color);
int green=GetGValue(color);Good Work...
-
hi.. if you know that coordinate's of pixel,you can use this function.
COLORREF GetPixel(
int x,
int y
)like this..
COLORREF color;
color=GetPixel(10,10);
int red=GetRValue(color);
int blue=GetBValue(color);
int green=GetGValue(color);Good Work...