Tuesday, August 5, 2008

CFIMAGE

To Set Path

<cfset pic=ExpandPath("../temp/sm3.jpg")>
<cfimage source="#pic#" action="writetobrowser">


Display image with border

<cfimage source="#pic#" action="border" name="new" color="##0000FF">
<cfimage source="#new#" action="writetobrowser">


Display image with resizable

<cfimage source="#pic#" action="resize" width="70" height="90" name="new">
<cfimage source="#new#" action="writetobrowser">

Display image resizable and rotation

<cfimage source="#pic#" action="rotate" angle="45" name="new1">
<cfimage source="#new1#" action="resize" height="90" width="70" name="new">
<cfimage source="#new#" action="writetobrowser">

No comments: