Flips an image across an axis.
imageFlip(name, transpose)
→ returns void
someImage.flip(transpose)
vertical
vertical
horizontal
diagonal
antidiagonal
90
180
270
This example shows how to rotate an image by 270 degrees.
<!--- Create a ColdFusion image from an existing JPEG file. --->
<cfimage source="../cfdocs/images/artgallery/paul03.jpg" name="myImage">
<!--- Turn on antialiasing to improve image quality. --->
<cfset imageSetAntialiasing(myImage,"on")>
<!--- Rotate the image by 270 degrees. --->
<cfset imageFlip(myImage,"270")>
<!--- Display the modified image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">
CF 11+ Lucee 4.5+ Flip the image vertically
imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
imgObj.flip("vertical");
cfimage (action="writeToBrowser", source=imgObj);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.