Dim i1 As WinForm.PictureBox = e.Form.Controls("Image1") Dim i2 As WinForm.PictureBox = e.Form.Controls("Image2")
Dim bmp As new Bitmap(i1.Image, i1.width, i1.Height) Dim g = graphics.fromimage(bmp) g.DrawImage(i2.image,i2.Left,i2.Top,i2.Width, i2.Height) bmp.Save("d:\test05.png")