hi thanks for your work before
i wanna make auto capture with portion of the screen
but can you help for make it auto capture with every x minutes and uptodate
what i try is
private void timer1_Tick(object sender, EventArgs e)
{
Rectangle rect = new Rectangle(x, y, w, h);
bmp = new Bitmap(rect.Width, rect.Height, PixelFormat.Format32bppArgb);
Graphics g = Graphics.FromImage(bmp);
g.CopyFromScreen(rect.Left, rect.Top, 0, 0, s, CopyPixelOperation.SourceCopy);
bmp.Save(@"D:\screen.jpeg", System.Drawing.Imaging.ImageFormat.Png);
pbCapture.Image = bmp;
}
and give :
System.Windows.Forms.Timer timer1 = new System.Windows.Forms.Timer();
timer1.Interval = 10000;//10 minutes
timer1.Tick += new System.EventHandler(timer1_Tick);
timer1.Start();
but give error parameter invalid