' open the original image
Using originalImage As New Vintasoft.Imaging.VintasoftImage("c:\original-image.tif")
' open the overlay image
Using overlayImage As New Vintasoft.Imaging.VintasoftImage("c:\overlay-image.tif")
Dim g As System.Drawing.Graphics = originalImage.OpenGraphics()
' draw the overlay image on the original image
overlayImage.Draw(g, New System.Drawing.Rectangle(300, 400, 500, 600), New System.Drawing.Rectangle(1000, 200, 1000, 700))
End Using
' close Graphics of the overlay image
originalImage.CloseGraphics()
' save original image
originalImage.Save("c:\processed-image.tif")
End Using