[程式] 我寫的一段程式 有關圖型旋轉的問題
上面也有一篇類似的問題
但有點不一樣@@
想請有經驗的各位幫我解惑一下
是這樣的
我寫一個程式如下(片段)
private void button1_Click(object sender, EventArgs e)
{
.......
if ((temp1[0] == 3) && (temp2[0] == 0)) pictureBox1.Visible = true;
if ((temp1[0] == 3) && (temp2[0] == 1))
{
pictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipY);
pictureBox1.Refresh()
}
.....
}
在按下button1之後會依照temp1的值顯現圖片
例如這裡是顯現3號圖片
重點是temp2[0]的值
如果temp2[0] == 0; 圖形不動 直接顯現3號
如果temp2[0] == 1; 圖形要180度轉 顯現180度反轉的3號
可是他就是不轉= =......
temp2[0] == 1 時他還是顯現沒有轉180度的原圖
我也試過
if ((temp1[0] == 3) && (temp2[0] == 1))
{
picturebox1.Visible=true; <--在這裡先visible
pictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipY);
pictureBox1.Refresh();
}
一樣沒用= =
是我rotateflip弄錯了嗎??
還是有其他的問題呢>"<
拜託各位高手了
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.167.20.176
→
08/28 20:34, , 1F
08/28 20:34, 1F
→
08/28 20:34, , 2F
08/28 20:34, 2F
→
08/28 20:37, , 3F
08/28 20:37, 3F
→
08/28 22:05, , 4F
08/28 22:05, 4F
→
08/29 06:56, , 5F
08/29 06:56, 5F
→
08/29 15:14, , 6F
08/29 15:14, 6F
→
08/29 15:14, , 7F
08/29 15:14, 7F