ColdFusion 9.0 Resources |
ImageSharpenParameters
UsageUse this function to sharpen outlines in photographs. Use the ImageSetAntialiasing function to improve the quality of the rendered image. Example<!--- Create a ColdFusion image from an existing JPEG file. ---> <cfimage source="../cfdocs/images/artgallery/paul01.jpg" name="myImage"> <!--- Turn on antialiasing to improve image quality. ---> <cfset ImageSetAntialiasing(myImage,"on")> <!--- Sharpen myImage by 2. ---> <cfset ImageSharpen(myImage,2)> <!--- Write the sharpened image to a file. ---> <cfimage source="#myImage#" action="write" destination="test_myImage.jpg" overwrite="yes"> <!--- Display the original and the sharpened images. ---> <img src="../cfdocs/images/artgallery/paul01.jpg"/> <img src="test_myImage.jpg"/> |