Sharpens a ColdFusion image by using the unsharp mask filter.
imageSharpen(name [, gain])
returns void
someImage.sharpen(gain)
Name | Type | Required | Default | Description | Values | |
---|---|---|---|---|---|---|
name | string | Yes | The image on which this operation is performed. | |||
gain | numeric | No | 1.0 | Gain values can be integers or real numbers. | /Users/garethedwards/development/github/cfdocs/docs/functions/imagesharpen.md | < 0: the image is blurred. |
CF11+ Lucee4.5+ Sharpen an image
imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
imgObj.sharpen(2);
cfimage(action="writeToBrowser", source=imgObj);