ImagePaste()
Takes two images and an (x,y) coordinate and draws the second image over the first image with the upper-left corner at coordinate (x,y).
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImagePaste( image1=any, image2=any, x=number, y=number );
Returns: void
| Argument | Description |
|---|---|
|
image1
any,
required
|
edit
The bottom image. |
|
image2
any,
required
|
edit
The image that is pasted on top of image1. |
|
x
number,
optional
|
edit
The x coordinate where the upper-left corner of image2 is pasted. |
|
y
number,
optional
|
edit
The y coordinate where the upper-left corner of image2 is pasted. |
Examples
editfirstImage = imageNew("",200,200,"rgb","red");
secondImage = imageNew("",200,200,"rgb","yellow");
imagepaste(firstImage,secondImage,75,75);
//Member function
//firstImage.paste(secondImage,10,10);
cfimage(action="writeToBrowser", source=firstImage);
See also
- Image manipulation
- image.paste()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)