[問題] 如何將 graphic 與 image 合成 ?

看板C_Sharp作者 (svanavs)時間16年前 (2009/09/26 16:09), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
我在 PictureBox 上 Create 一個 graphic G 接著在 G 上畫了一些圖案 最後想把 G 跟 PictureBox 裡的 image 合起來存成另一個 image 請問我該怎麼做呢 ? EX. pictureBox1.Image = Image.FromFile("....") G = pictureBox1.CreateGraphics(); G.DrawLine(.....); 最後希望 存成另一個 image 包含 pictureBox1.Image 與 G... -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.222.93

09/26 22:26, , 1F
G = new Graphic.FromXXX(pictureBox1.Image);
09/26 22:26, 1F

09/26 22:27, , 2F
用G畫好後....將pictureBox1.Image存檔 (應該是吧...)
09/26 22:27, 2F
※ 編輯: svanavs 來自: 140.115.222.93 (09/26 22:49)

09/26 22:50, , 3F
已解決~ 感恩
09/26 22:50, 3F
文章代碼(AID): #1AlSn0HR (C_Sharp)