2.圖片翻轉

private void TmrRun_Tick(object sender, EventArgs e)

{

/*

pictureBox1.Image = Image.FromFile(".\\images\\jellyfish.jpg");

pictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipY);

*/

//ImgRun.Images[num].RotateFlip(RotateFlipType.Rotate180FlipY);

PicRun.Image = ImgRun.Images[num]; // 顯示第num張圖

// PicRun.Image.RotateFlip(RotateFlipType.Rotate180FlipY);

if (num == 3) //若圖片註標值 = 3

num = 0; //設圖片註標值 = 0

else //其餘即圖片註標值 < 3

num++; //圖片註標值加 1

}

//在tmrMove_Tick事件中將picRun左移10點

private void TmrMove_Tick(object sender, EventArgs e)

{

PicRun.Left -= 10; //picRun左移10點

//若picRun的Left <= -45,就設picRun.Left等於表單工作區的寬度

if (PicRun.Left <= -45) PicRun.Left = this.ClientSize.Width;

}