imageBlur

Description

Smooths (blurs) the ColdFusion image.

Categories

Related

History

ColdFusion 8: Added this function.

Syntax

ImageBlur(name [, blurRadius])

Attributes

AttributeDescriptionRequiredDefault
blurRadiusOptional. The size of the blur radius. Value must be greater than or equal to 3 and less than or equal to 10. The default value is 3.
nameRequired. The ColdFusion image on which this operation is performed.

Returns

Nothing.

Usage

The blurRadius operation affects performance: as the blurRadius value increases, performance decreases.

Example

<!--- This example shows how to blur an image by a radius of 10. ---> 
<!--- Create a ColdFusion image from an existing JPEG file. ---> 
<cfimage source="../cfdocs/images/artgallery/jeff05.jpg" name="myImage"> 
<!--- Use the maximum blur radius to blur the image. ---> 
<cfset ImageBlur(myImage,10)> 
<!--- Save the modified ColdFusion image to a JPEG file. ---> 
<cfimage source="#myImage#" action="write" destination="test_myImage.jpeg" overwrite="yes"> 
<!--- Display the source image and the new image. ---> 
<img src="../cfdocs/images/artgallery/jeff05.jpg"/> 
<img src="test_myImage.jpeg"/>