Example #1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            CaptureResult result = CaptureAgent.Capture(m_rect);

            if (result == null)
            {
                return;
            }

            m_rect            = result.Rect;
            pictureBox1.Image = result.Image;
            label1.Text       = result.Rect.ToString();
        }
Example #2
0
        private void CaptureFromScreen()
        {
            CaptureResult result = CaptureAgent.Capture(DPI);

            if (result == null)
            {
                return;
            }

            m_bmp = result.Image;
            UpdateBitmap();
            btnRecognize.Enabled = m_bmp != null;
            lblRect.Text         = result.Rect.ToString();
        }