我有二張圖片
Bitmap bmp1 = new Bitmap(Server.MapPath("../UpFile/Hc/abc.png")); 上層圖片
Bitmap bmp2 = new Bitmap(Server.MapPath("../UpFile/BeiJing/3.png")); 下層圖片
我想 把 bmp1 圖片 放到 bmp2 上面。 切不要bmp1 圖片的背景圖。 就好像是把1圖片畫到2上面是的。而不是一圖片把二覆寫了
Graphics g = Graphics.FromImage(bmp1)
g.DrawImage(bmp2, rect, new Rectangle(0, 0, bmp2.Width, bmp2.Height), GraphicsUnit.Pixel);
請問如何能做到。




圖1是下層圖,圖2是上層圖,我想做到圖3效果。 現在是4圖效果
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/268349.html
標籤:C#
上一篇:利用npoi,將access 匯出 到 excel的實體,請發個鏈接
下一篇:public static void Ainfo(List<Student> students) { Console.Wri
