Purpose: Paste an image file onto another image file
Format: PASTE source filename destination filename x y
Notes: Parameters x and y represent the upper left corner target coordinates of the image specified by the destination filename parameter. The image specified in the source filename parameter is written over the destination image at this location.
Examples:
# This example will take
an 1/2 scale image and
# paste on the upper
left hand corner of the
# the original image.
getfile $imgfile " Select an Image File"
# Copy the original file
twice
infile_a $imgfile
outfile \fpimage\images\test1.img
process begin
out = ina
process end
infile_a $imgfile
outfile \fpimage\images\test2.img
process begin
out = ina
process end
# Shrink the the first
image file
scale \fpimage\images\test1.img
0.5
# Paste the small image onto the second copy
paste test1.img test2.img 0 0