ExpandPoint() public static method

public static ExpandPoint ( IntPoint position ) : IntRect
position IntPoint
return IntRect
        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);
                }
            }
        }
Example #2
0
        public static IntRect ExpandPoint(IntPoint position)
        {
            ScreenShot screenshot = new ScreenShot();

            return(ScreenCoordinates.ExpandPoint(position, screenshot));
        }