You are here

function imageapi_gd_image_sharpen in ImageAPI 5

Same name and namespace in other branches
  1. 6 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;
}