public static void CheckHeroFrame() { using (Graphics graphics = Graphics.FromHwnd(Win32Wrapper.GetDesktopWindow())) { graphics.DrawRectangle(new Pen(new SolidBrush(Color.Red), 3), GetHeroRectangle()); } }
public static void CheckFullScreenFrame() { // Point cursorLocation; // Win32Wrapper.CURSORINFO cursorInfo; // Win32Wrapper.GetCursorInfo(out cursorInfo); // var p = new Point(cursorInfo.ptScreenPos.x, cursorInfo.ptScreenPos.y); // Screen screen = Screen.FromPoint(p); //Point upperLeftPoint = new Point(_screen.Bounds.Left, _screen.Bounds.Y); //Point upperRightPoint = new Point(_screen.Bounds.Right, _screen.Bounds.Y); //Point bottomLeftPoint = new Point(_screen.Bounds.X, _screen.Bounds.Top); //Point bottomRightPoint = new Point(_screen.Bounds.X, _screen.Bounds.Bottom); using (Graphics graphics = Graphics.FromHwnd(Win32Wrapper.GetDesktopWindow())) { graphics.DrawRectangle(new Pen(new SolidBrush(Color.Red), 5), Screen.Bounds); } }