This class can be used to generate an image from the combination of two pictures.
It creates a new image pasting two given images in GIF, JPEG or PNG formats.
The new image has the width of the first image. The second image will be rescaled to appear with the same width as the first. The new image height is the sum of the first image height with the height of second image after rescaled.
The resulting image may show the first image at the top or below the second image. Alternatively, it may show the first image on the top of the second.
The final image may be stored to a file in the JPEG, GIF or PNG formats. |