function image_imagick_blur in Imagick 7
Blurs an image
Parameters
$image: An image object. The $image->resource value will be modified by this call.
$type: The type of blur.
$radius: The radius of the blur.
$sigma: The sigma of the blur.
$angle: The angle of the blur.
Return value
TRUE or FALSE, based on success.
File
- effects/
imagick.blur.inc, line 26
Code
function image_imagick_blur(stdClass $image, $type, $radius, $sigma, $angle) {
switch ($type) {
case NORMAL_BLUR:
return $image->resource
->blurImage($radius, $sigma);
break;
case ADAPTIVE_BLUR:
return $image->resource
->adaptiveBlurImage($radius, $sigma);
break;
case GAUSSIAN_BLUR:
return $image->resource
->gaussianBlurImage($radius, $sigma);
break;
case MOTION_BLUR:
return $image->resource
->motionBlurImage($radius, $sigma, $angle);
break;
case RADIAL_BLUR:
return $image->resource
->radialBlurImage($angle);
break;
}
}