Exemplo n.º 1
0
        private void DocumentViewer1_MouseUp(object sender, Gnostice.Core.Viewer.MouseActivityEventArgs e)
        {
            x2 = (e as WinFormsMouseActivityEventArgs).PosRelativetoPage.X;
            y2 = (e as WinFormsMouseActivityEventArgs).PosRelativetoPage.Y;
            Rectangle rect = new Rectangle((int)Math.Min(x1, x2), (int)Math.Min(y1, y2), (int)Math.Abs(x1 - x2), (int)Math.Abs(y1 - y2));

            imageStream = e.ImageStream;
        }
Exemplo n.º 2
0
 private void DocumentViewer1_MouseMove(object sender, Gnostice.Core.Viewer.MouseActivityEventArgs e)
 {
     x = (e as WinFormsMouseActivityEventArgs).PosRelativetoPage.X;
     y = (e as WinFormsMouseActivityEventArgs).PosRelativetoPage.Y;
 }