试图从随机图像资源中获取图像文件名,但无法弄清楚。
Image[] left_img = { Resource1.left_sci, Resource1.left_paper, Resource1.left_rock, Resource1.left_rock, Resource1.left_sci, Resource1.left_sci, Resource1.left_paper, Resource1.left_rock };
for (int j = -1; j < left_img.Length; j++)
{
lock (left_img)
{
left_img.Clone();
pictureBox1.Image = left_img[rmd.Next(0,8)];
Thread.Sleep(2200);
if (j == 7)
j = -1;
}
}