private void Timer1_Tick(object sender, EventArgs e)
{
pictureBox1.Refresh();
Graphics graphics_all = Graphics.FromImage(bmp);
graphics_all.DrawRectangle(new Pen(Color.White,6),new Rectangle(point_table.X,point_table.Y
,20,20));
//graphics_all.DrawRectangle(new Pen(Color.White, 3), new Rectangle(point_table.X, point_table.Y
// , 20, 20));
//graphics_all.Clear(Color.White);
point_table.Offset(2, 2);
graphics_all.DrawRectangle(new Pen(Color.Blue,3),new Rectangle(point_table.X,point_table.Y,20,20));
//graphics_all.Dispose();
//graphics_all.Clear(Color.White);
/* if (point_table.X >= pictureBox1.Width || point_table.Y >= pictureBox1.Height)
{
timer1.Stop();
timer1.Dispose();
}*/
}
{
pictureBox1.Refresh();
Graphics graphics_all = Graphics.FromImage(bmp);
graphics_all.DrawRectangle(new Pen(Color.White,6),new Rectangle(point_table.X,point_table.Y
,20,20));
//graphics_all.DrawRectangle(new Pen(Color.White, 3), new Rectangle(point_table.X, point_table.Y
// , 20, 20));
//graphics_all.Clear(Color.White);
point_table.Offset(2, 2);
graphics_all.DrawRectangle(new Pen(Color.Blue,3),new Rectangle(point_table.X,point_table.Y,20,20));
//graphics_all.Dispose();
//graphics_all.Clear(Color.White);
/* if (point_table.X >= pictureBox1.Width || point_table.Y >= pictureBox1.Height)
{
timer1.Stop();
timer1.Dispose();
}*/
}