private void Update(bool force) { IntPoint mousePt = NativeMethods.GetCursorPos(); if (Keyboard.IsKeyDown(Key.Space)) { } if (force || mousePt != this.previousPoint) { this.previousPoint = mousePt; IntRect rect = ScreenCoordinates.ExpandPoint(mousePt, this.screenshot); if (!rect.IsEmpty) { this.UpdateBounds(rect, mousePt); } } }
public static IntRect ExpandPoint(IntPoint position) { ScreenShot screenshot = new ScreenShot(); return(ScreenCoordinates.ExpandPoint(position, screenshot)); }