Combining Image Files

jantman
03-19-2006, 09:33 PM
Hello,

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,
Jason

Iceplug
03-20-2006, 06: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