C#当中把两张图片合成一张代码
现有两个picturebox,上下摆放。上面一个里面显示头像,下面显示身体。如何才能使两张图像合成一张,以一张完整的照片导入数据库!
newBmp = new Bitmap(bmp1.Width, bmp1.Height+bmp2.Height);g = Graphics.FromImage(newBmp)g.DrawImage(bmp1, 0, 0);g.DrawImage(bmp2, 0, bmp1.Height)save(newBmp)