示例#1
0
        private void bCapture_Click(object sender, EventArgs e)
        {
            User32.SetForegroundWindow(wm.GetTMWindow());

            Bitmap bitmap = wm.GetScreenPart((int)nTop.Value, (int)nLeft.Value, (int)nWidth.Value, (int)nHeight.Value);

            pBox.Image = bitmap;
        }