Join or Stitch 2 Images

Example requests & Code samples for GdPicture Toolkits.
Post Reply
Edwin
Posts: 7
Joined: Thu Aug 18, 2011 5:44 pm

Join or Stitch 2 Images

Post by Edwin » Tue Jun 10, 2014 4:52 pm

After scanning a bank check in duplex, we want to join the front and back into 1 image. This would require a new image being twice the height of the check, then placing the front image in the top half, and the back image in the bottom half.
Can this be done? If so, can you supply an example of the joining, or point me in the right direction?
Thanks in advance.
Edwin

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Join or Stitch 2 Images

Post by SamiKharma » Mon Jul 07, 2014 9:57 am

Hi,

Yes, this can be easily done, what you need is to:
1. Create a new image with the size of both images (if you want to align horizontally them height of the biggest image, and the width of image 1 + width image 2).
You can achieve that using https://www.gdpicture.com/guides/gdpicture/GdP ... Image.html
2. Draw the first image at coordinates 0, 0 using https://www.gdpicture.com/guides/gdpicture/GdP ... Image.html
3. Draw the second image at coordinates (image 1 width, 0) using the same function

If you need any more help please do not hesitate to ask.

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests