IMAGECOMBINE

Combines two graphic files and writes the combined graphic to a new file.

Syntax:

IMAGECOMBINE source1$, source2$, destination$, mode$
 

Discussion:

This keyword opens the two source graphic files, combines them to a single image, and then writes the resulting image to the destination file. The files may be in BMP, JPG or PNG format. Conversion between the formats is automatic and is based upon the extension provided. If the source images have the same number of rows, they can be combined left-to-right. If the source images have the same number of columns, they can be combined top-to-bottom. The combination used depends upon the mode$ value. Use either "LEFTRIGHT" or "TOPBOTTOM" for the value of mode$ to define how the images should be combined.

Example:

S1$ = "C:\TEMP\SOURCE1.JPG" S2$ = "C:\TEMP\SOURCE2.JPG"
D$ = "C:\TEMP\DESTINATION.JPG" M$ = "LEFTRIGHT"
IMAGECOMBINE S1$, S2$, D$, M$

Related Functions:

PIXX, PIXY

Related Keyword:

IMAGEEXTRACT

Next: