本帖最后由 王子斌 于 2013-12-14 14:33 编辑
- string[] dir = Directory.GetFiles(@"D:\Program Files\feiq\Recv Files\艾薇儿","*.jpg");
- Random r = new Random();
- private void timer1_Tick(object sender, EventArgs e)
- {
- int i = r.Next(0, dir.Length - 1);
- Image tp1 = Image.FromFile(dir[i]);
- pictureBox1.Image = tp1;
复制代码
会很快的上升,然后就会报内存不足,请问有方法解决么 |
|