using
System.Drawing;
System.Threading.Thread.Sleep(3000);
System.Drawing.Image templateImage =
new
System.Drawing.Bitmap(1040, 700);
System.Drawing.Graphics templateG = System.Drawing.Graphics.FromImage(templateImage);
templateG.CopyFromScreen(
new
Point(200, 100),
new
Point(0, 0),
new
Size(1000, 900), CopyPixelOperation.MergeCopy);
System.Diagnostics.Process[] pro = System.Diagnostics.Process.GetProcessesByName(
"IEXPLORE"
);
foreach
(System.Diagnostics.Process ps
in
pro)
{
ps.Kill();
}
templateImage.Save(
@"E:TEST"
+ imgname + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg);