Smooths (blurs) the ColdFusion image.
imageBlur(name [, blurradius])
returns void
someImage.blur(blurradius)
Name | Type | Required | Default | Description |
---|---|---|---|---|
name | string | Yes | The image on which this operation is performed. | |
blurradius | numeric | No | 3 | The size of the blur radius. Value must be greater than or equal to 3 and less than or equal to 10. |
This example shows how to blur an image by a radius of 10.
<cfset imageBlur(myImage,10)>
CF11+ Lucee4.5+ Smooth or blur an image
imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
imgObj.blur(5);
cfimage(action="writeToBrowser", source=imgObj);