ImageOverlay()

Reads two source images and overlays the second source image on the first source image.

Requires Extension: Image extension

ImageOverlay( source1=any, source2=any );

Returns: void

Argument Description
source1
any, required

The image that is the bottom layer in the image.

source2
any, required

the image that is the top layer (overlaid on the source1 image) in the image.

Examples

myImg = imageNew("",152,152,"rgb","40739e");
	topImg = imageNew("",80,80,"rgb","fbc531");
	myImg.overlay(topImg);
	cfimage(action="writeToBrowser", source=myImg);

See also