//원래는 미트스핀이 회전하게 하고싶었는데 생각처럼은 안됐습니다 -_-
private void timer1_Tick(object sender, EventArgs e)
        {
            //MessageBox.Show(sender.ToString() + "\n" + e.ToString());
            int temp;
            temp = int.Parse(label4.Text);
            temp++;
            label4.Text = temp.ToString();
            
            String tempString = label5.Text;
            tempString = tempString.Substring(1, tempString.Length - 1) + tempString.Substring(0, 1);
            label5.Text = tempString;

            if (bitmap1 != null)
            {
                switch(count){
                    case 0:
                    bitmap1.RotateFlip(RotateFlipType.Rotate90FlipX);
                    pictureBox1.Image = bitmap1;
                    count++;
                    break;
                    case 1:
                bitmap1.RotateFlip(RotateFlipType.Rotate180FlipX);
                pictureBox1.Image = bitmap1;
                count++;
                break;
                    case 2:
                bitmap1.RotateFlip(RotateFlipType.Rotate180FlipXY);
                pictureBox1.Image = bitmap1;
                count++;
                break;
                    case 3:
                bitmap1.RotateFlip(RotateFlipType.RotateNoneFlipX);
                pictureBox1.Image = bitmap1;
                count = 0;
                break;
                }
            }
        }
Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2012/넷째날/묻지마Csharp/Mission4/서영주
last modified 2021-02-07 05:29:15