MegaMan.LevelEditor.ScreenDrawingSurface.MouseLocation C# (CSharp) Метод

MouseLocation() приватный Метод

private MouseLocation ( MouseEventArgs e ) : Point
e MouseEventArgs
Результат Point
        private Point MouseLocation(MouseEventArgs e)
        {
            int tx = e.X;
            int ty = e.Y;

            Bitmap icon = (Bitmap)MainForm.Instance.CurrentTool.Icon;

            tx = (int)(tx / zoomFactor);
            ty = (int)(ty / zoomFactor);

            if (MainForm.Instance.CurrentTool.IconSnap)
            {
                tx = (tx / Screen.Tileset.TileSize) * Screen.Tileset.TileSize;
                ty = (ty / Screen.Tileset.TileSize) * Screen.Tileset.TileSize;
            }

            return new Point(tx, ty);
        }