Whatever message this page gives is out now! Go check it out!
ImageTranslate(name, xTrans, yTrans [, interpolation])Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
xTrans | Required. Displacement in the x direction. |
yTrans | Required. Displacement in the y direction. |
interpolation | Optional. Type of interpolation used for resampling:
|
<cfimage source="../cfdocs/images/artgallery/aiden01.jpg" name="myImage">
<!--- Turn on antialiasing to improve image quality. --->
<cfset ImageSetAntialiasing(myImage,"on")>
<!--- Offset the image's position to (20,10). --->
<cfset ImageTranslate(myImage,20,10)>
<!--- Display the offset image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">