Overlaying 2 Images

In this tutorial i will show you how to over lay one image onto another using coldfusions built-in image functions, this method can be used to add a walter mark to an image.

First of all we need 2 images, here are my images image 1 and image 2 i will overlay image 2 onto image 1 using the ImageOverlay function.

We firstly get both of the images using the cfimage tag and give them names

<cfimage source="http://cfproject.co.uk/coldfusionsamples/clio.jpg" name="baseImage">
<cfimage source="http://cfproject.co.uk/coldfusionsamples/cfp.jpg" name="topImage">

We then simply overlay them using the Image Overlay function and write them to the browser

<cfset ImageOverlay(baseImage,topImage)>
<cfimage source="#baseImage#" action="writeToBrowser">

Here is an example of the finished image

Comments
# Posted By rtrey | 12/07/10 08:36

Archives By Subject

Advertising (4) [RSS]
Blog Design (1) [RSS]
CFProject Scripts (2) [RSS]
Coldfusion Charts (3) [RSS]
Coldfusion Functions (5) [RSS]
Coldfusion Overview (1) [RSS]
Coldfusion Tutorials (16) [RSS]
For Sale (2) [RSS]
Image Manipulation (1) [RSS]
Java (1) [RSS]
JavaScript (4) [RSS]
PHP (1) [RSS]
Railo (4) [RSS]
SQL (1) [RSS]
Useful Tools (3) [RSS]

Recent Comments

Coldfusion and Java
nike air max shoes said: Free shipping buy coach handbags in coach outlet online,save up 76%,[url=http://www.coachhandbags-...... [More]

Coldfusion and Java
coach handbags said: These four pairs are all from Sergio Rossi. And their color is all can match well with your wedding ... [More]

Select Last Number In Access
coach handbags said: These four pairs are all from Sergio Rossi. And their color is all can match well with your wedding ... [More]

Select Last Number In Access
nike air max shoes said: Free shipping buy coach handbags in coach outlet online,save up 76%,[url=http://www.coachhandbags-...... [More]

Unlimited Website Hosting
nike air max shoes said: Free shipping buy coach handbags in coach outlet online,save up 76%,[url=http://www.coachhandbags-...... [More]

Recent Entries

No recent entries.
ColdFusion Blog | ColdFusion Hosting | ColdFusion Q & A