# image.drawImage()

This function is deprecated, use [ImagePaste()](../../functions/imagepaste.md) 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

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| image | any | Yes | the image to draw on it |  |
| x | number | Yes | The x coordinate of the of the top left corner of the image to draw. |  |
| y | number | Yes | The y coordinate of the of the top left corner of the image to draw. |  |

# Examples

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

# Categories

[Image manipulation](../../../categories/image.md)

# See Also

[ImageDrawImage()](../../functions/imagedrawimage.md), [Image](../image.md)