image.drawImage()

This function is deprecated, use ImagePaste() instead.

Draws a image on a image with the baseline of the first character positioned at (x, y) in the image.

image.drawImage( image=any, x=number, y=number )

Returns: Image

Argument Description
image
any, required

the image to draw on it

x
number, required

The x coordinate of the of the top left corner of the image to draw.

y
number, required

The y coordinate of the of the top left corner of the image to draw.

Examples

imgOne=imageNew("",100,100,"RGB","red");
	imgTwo=imageNew("",40,30,"RGB","##ffffff");
	imgOne.drawImage(imgTwo,30,10);
	cfimage(action="writeToBrowser",source=imgOne);

See also