What I need is a function similar to the function below (I just typed it). I need the function to check for a pixel variation on a specific window that is running in the background and not visible. The function will need to be very fast when searching the specified area >200ms. The function will need to return the X and Y coordinates that it found the pixel.
public Point FindPIxel(IntPtr windowHandle, int SearchAreaX1(top left x), int SearchAreaY1(top left y), int SearchAreaX2 (bottom right x), int SearchAreaY2(bottom right y), Color specificPixel (format 0xC9A053), int shade-variation)
Point xy = new Point;
// SOME CODE TO FIND THE SPECIFIC PIXEL VARIATION
xy.X = pixelFound.X;
xy.Y = pixelFound.Y;
Hello, I work with projects using pixel and image recognition every day. I have working source to grab a screencap in background and help you with any needs for RS.