I then forgot a very important part - the output!
You will then say
Image1.picture.SaveToFile(
or else you can copy it to the clipboard or do what you want.
If you have a problem with the format (BMP) see if you can use PNG instead - I think you can. Alternatively in the JVCL suite there is a TImage type component that works with a variety of formats including GIF, jpeg, BMP etc - so instead of using a TImage you will use TJvImage or something
Main Topics
Browse All Topics





by: rfwoolfPosted on 2008-06-24 at 08:40:30ID: 21856933
Attached is a procedure that you can play around with to get the results you need... What the procedure below does is it places a bitmap in the centre of another bitmap on a Timage- you will use the same idea.
as.draw(X, Y,bitmap); //place the bitmap onto the image //where X and Y is the top and left of the image as.draw(X, Y,bitmap2) ;//place the bitmap2 onto the image
Also, In this attached demo you use 2 Opendialogs to point to the images you want to use - you can instead just replace these parts with the path to the images you need - or if you somehow have them in memory.
Basically what you'll need to do is have a TImage and 2 TBitmaps.
You will need to size the Timage big enough to fit the two concatenated images - in other words Timage will be your canvas for laying out of the images.
Then you simply draw the bitmaps onto the canvas:
image1.Picture.Bitmap.Canv
image1.Picture.Bitmap.Canv
Select allOpen in new window