Function JoinImagesVert(Image1 As Bitmap, Image2 As Bitmap) As Bitmap
Dim Result As New Bitmap(Math.Max(Image1.Width, Image2.Width), _
Image1.Height + Image2.Height)
Dim gResult As Graphics = Graphics.FromImage(Resi;t)
gResult.DrawImage(Image1, New Point(0, 0))
gResult.DrawImage(Image2, New Point(0, Image1.Height))
gResult.Dispose()
gResult = Nothing
Return Result