Beispiel #1
0
        private PointSD convertPoint(Point point)
        {
            int windowWidth = this.Width - 10;
            int windowHight = this.Height - 10;

            int newX = (int)(point.X * (((double)windowWidth) / 320));
            int newY = (int)(point.Y * (((double)windowHight) / 240));

            return(new PointSD(newX - 5, newY - 5));
        }
Beispiel #2
0
        private Rectangle getRectangle(Point point)
        {
            PointSD newPont = convertPoint(point);

            return(new Rectangle(newPont.X, newPont.Y, 10, 10));
        }