看板 C_Sharp 關於我們 聯絡資訊
如果你想要在someImage上畫東西, 你可以利用Graphics gc = Graphics.FromImage( someImage ); gc.DrawLine( ... ) ※ 引述《pat0307 (pat)》之銘言: : 請問一下各位大大,我目前是知道VS2005要畫線的方法 : 是可呼叫pictureBox元件 : 在利用 : private void pictureBox1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) : { : Pen a = new Pen(Color.CadetBlue); : for (int i = 0; i < linenum-1; i++) : { : e.Graphics.DrawLine(a, px[i], py[i], px2[i], pxy[i]); : } : } : 的方式畫線 : 但.NET的Image元件,並無Image_Paint的事件,請問那我應該用何種方法,才可在 : Image上畫線呢?請教各位了。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.190