bool isInOperations(IntPtr hWnd) { _screenshotSource = new ScreenshotSource(hWnd); screenshot = Screenshot; var color4 = screenshot.Get(Pixel.Create(540, 1500)); var color5 = screenshot.Get(Pixel.Create(420, 1500)); _screenshotSource.Dispose(); return((color4 == color5) ? true : false); }
bool isInMenuAFK(IntPtr hWnd) { _screenshotSource = new ScreenshotSource(hWnd); screenshot = Screenshot; var color4 = screenshot.Get(Pixel.Create(500, 560)); var color5 = screenshot.Get(Pixel.Create(500, 600)); _screenshotSource.Dispose(); return((color4 == color5 && color4.R == 251) ? true : false); }
bool isInMenu(IntPtr hWnd) { _screenshotSource = new ScreenshotSource(hWnd); screenshot = Screenshot; var color4 = screenshot.Get(Pixel.Create(123, 166)); var color5 = screenshot.Get(Pixel.Create(123, 371)); _screenshotSource.Dispose(); return((color4 == color5) ? true : false); }
bool isInQueue(IntPtr hWnd) { _screenshotSource = new ScreenshotSource(hWnd); screenshot = Screenshot; var color1 = screenshot.Get(Pixel.Create(455, 960)); var color2 = screenshot.Get(Pixel.Create(615, 960)); var color3 = screenshot.Get(Pixel.Create(500, 960)); _screenshotSource.Dispose(); return((color1 == color2 && color1 == color3) ? true : false); }
bool isInLobby(IntPtr hWnd) { _screenshotSource = new ScreenshotSource(hWnd); screenshot = _screenshotSource.Screenshot; var color1 = screenshot.Get(Pixel.Create(278, 162)); var color2 = screenshot.Get(Pixel.Create(278, 228)); var color3 = screenshot.Get(Pixel.Create(285, 500)); _screenshotSource.Dispose(); return((color1 == color2 && color1 == color3) ? true : false); }
public void AddPixel(Pixel pixel) { Pixels.Add(pixel); IntegratedPixel.Append(pixel); IntegratedColor.Append(_img.Get(pixel)); }