array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.edgeimage.php', 1 => 'Imagick::edgeImage', 2 => 'Enhance edges within the image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.drawimage.php', 1 => 'Imagick::drawImage', ), 'next' => array ( 0 => 'imagick.embossimage.php', 1 => 'Imagick::embossImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/edgeimage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL imagick 2, PECL imagick 3)
Imagick::edgeImage — Enhance edges within the image
Enhance edges within the image with a convolution filter of the given radius. Use radius 0 and it will be auto-selected.
radiusThe radius of the operation.
成功时返回 true。
错误时抛出 ImagickException。
示例 #1 Imagick::edgeImage()
<?php
function edgeImage($imagePath, $radius) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->edgeImage($radius);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>