Exemplo n.º 1
0
        void OnCorrelationTileImageViewMouseMoveHandler(TiledImageView sender, TiledImageViewMouseEventArgs args)
        {
            if (!this.knownOverlapCorrelatorOptionPanel.SelectStartTile.Checked)
            {
                return;
            }

            this.startPosition = args.VirtualAreaPosition;
            Point pt = new Point((int)this.startPosition.X, (int)this.startPosition.Y);

            this.startTile = FindTileAroundPoint(pt);
            sender.Invalidate();
        }
Exemplo n.º 2
0
        void OnTileImageViewMouseDownHandler(TiledImageView sender, TiledImageViewMouseEventArgs args)
        {
            // Causes scroll messages.
            if (args.ImageViewMouseEventArgs.MouseEventArgs.Button != MouseButtons.Left)
            {
                return;
            }

            Point pt = args.VirtualAreaPosition;

            pt = Utilities.ZoomPoint(pt, this.mosaicWindow.TileView.Zoom);

            pt.X -= this.mosaicWindow.TileView.ClientRectangle.Width / 2;
            pt.Y -= this.mosaicWindow.TileView.ClientRectangle.Height / 2;

            this.mosaicWindow.TileView.SetAutoScrollPosition(pt);

            this.mosaicWindow.TileView.Redraw();
            this.mosaicWindow.TileView.Refresh();
        }
        void OnCorrelationTileImageViewMouseMoveHandler(TiledImageView sender, TiledImageViewMouseEventArgs args)
        {
            if (!this.knownOverlapCorrelatorOptionPanel.SelectStartTile.Checked)
                return;

            this.startPosition = args.VirtualAreaPosition;
            Point pt = new Point((int) this.startPosition.X, (int) this.startPosition.Y);
            this.startTile = FindTileAroundPoint(pt);
            sender.Invalidate();
        }
Exemplo n.º 4
0
        void OnTileImageViewMouseDownHandler(TiledImageView sender, TiledImageViewMouseEventArgs args)
        {
            // Causes scroll messages.
            if (args.ImageViewMouseEventArgs.MouseEventArgs.Button != MouseButtons.Left)
                return;

            Point pt = args.VirtualAreaPosition;

            pt = Utilities.ZoomPoint(pt, this.mosaicWindow.TileView.Zoom);

            pt.X -= this.mosaicWindow.TileView.ClientRectangle.Width / 2;
            pt.Y -= this.mosaicWindow.TileView.ClientRectangle.Height / 2;

            this.mosaicWindow.TileView.SetAutoScrollPosition(pt);

            this.mosaicWindow.TileView.Redraw();
            this.mosaicWindow.TileView.Refresh();
        }