function imageapi_gd_image_sharpen in ImageAPI 6
Same name and namespace in other branches
- 5 imageapi_gd.module \imageapi_gd_image_sharpen()
File
- ./
imageapi_gd.module, line 205 - GD2 toolkit functions
Code
function imageapi_gd_image_sharpen(&$image, $radius, $sigma, $amount, $threshold) {
$threshold = round($threshold * 255);
$image->resource = imageapi_gd_unsharp_mask($image->resource, $radius, $sigma, $amount, $threshold);
return TRUE;
}