You are here

function image_imagick_roundedcorners in Imagick 7

Adds rounded corners to an image

Parameters

$image: An image object. The $image->resource value will be modified by this call.

$x_rounding: x rounding

$y_rounding: y rounding

$stroke_width: stroke width

$displace: image displace

$size_correction: size correction

Return value

TRUE or FALSE, based on success.

File

effects/imagick.roundedcorners.inc, line 21

Code

function image_imagick_roundedcorners(stdClass $image, $x_rounding, $y_rounding, $stroke_width, $displace, $size_correction) {
  return $image->resource
    ->roundCorners($x_rounding, $y_rounding, $stroke_width, $displace, $size_correction);
}