ok I have the color of a pixel but I wont to find x,y of that pixl with out moving the mouse over it. so far im thinking i need to use this.
but I dont know what els to do.Code:COLORREF RGB(37, 124, 244);
ok I have the color of a pixel but I wont to find x,y of that pixl with out moving the mouse over it. so far im thinking i need to use this.
but I dont know what els to do.Code:COLORREF RGB(37, 124, 244);
I don't quite understand what you are asking, but what I think you are asking is this:
"How can I find the RGB color value of a specific pixel on the screen at some coordinate (x,y)?"
Is that correct? Or are you asking this question:
"How can I find all pixels with coordinates (x,y) that have the specified RGB value which I know?"
Whatever the case...I don't think COLORREF is what you want. It just stores some RGB value in memory as a "color". It has nothing to do with (x,y) coordinates.
>> but I dont know what els to do.
a book perhaps?
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
no thats not it but I think that i have figured it out thanks
If you are trying to get pixel x,y from pixel offset:
Code:int pixel_x = offset % (width); int pixel_y = offset / (width);