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(); }
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(); }