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
|
edit
the image to draw on it |
|
x
number,
required
|
edit
The x coordinate of the of the top left corner of the image to draw. |
|
y
number,
required
|
edit
The y coordinate of the of the top left corner of the image to draw. |
Examples
edit imgOne=imageNew("",100,100,"RGB","red");
imgTwo=imageNew("",40,30,"RGB","##ffffff");
imgOne.drawImage(imgTwo,30,10);
cfimage(action="writeToBrowser",source=imgOne);