Combine 2 images in one, using VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Anyone knows know can I combine 2 images (gif, jpg, etc) in one image, using
VB6 or VB.NET code?? Thanks for your help.

Richard
 
Richard_VB said:
Anyone knows know can I combine 2 images (gif, jpg, etc)
in one image, using VB6 or VB.NET code??

Load the two images into 'Bitmap' objects, create a new 'Bitmap' object of
appropriate size, then use 'Graphics.FromImage' to get a 'Graphics' object
for the destination bitmap. Use its 'DrawImage' method to draw the source
bitmaps onto the destination bitmap and call the destination bitmap's 'Save'
method to persist it to a file.
 
Thanks for your help. I gonna try it.

Herfried K. Wagner said:
Load the two images into 'Bitmap' objects, create a new 'Bitmap' object of
appropriate size, then use 'Graphics.FromImage' to get a 'Graphics' object
for the destination bitmap. Use its 'DrawImage' method to draw the source
bitmaps onto the destination bitmap and call the destination bitmap's 'Save'
method to persist it to a file.
 
Back
Top