Lucee Function Reference

imagepaste()

Composites one image onto another at specified coordinates. The second image is overlaid on top of the first image, preserving transparency and using high-quality interpolation.

Example

imagepaste(any image1,any image2,[number x,[number y]]):void

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
image1 any  Yes The base image that will receive the pasted content. This image is modified in place.  
image2 any  Yes The image to paste onto the base image. Its transparency (alpha channel) is preserved during compositing.  
x number  No The x coordinate where image2 will be placed on image1. If negative, image2 will be partially clipped.  
y number  No The y coordinate where image2 will be placed on image1. If negative, image2 will be partially clipped.