Combining Image Files

03-19-2006, 08:33 PM

My program outputs two images as JPEG or BMP. There is also a thrid which is static, I created it. They are the same width and different heights. Now I need to make them all ONE image, i.e. one above the other.

Thanks for the help,

03-20-2006, 05:36 PM
Create a new (empty) bitmap, with a width equal to their width and a height equal to 2 x their height.

Create a graphics object from the bitmap: Graphics.FromImage(...)
With this graphics object, draw your two pictures into the bitmap.
At this point, you should have a combined bitmap image of those two files.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum