©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL imagick 2.0.0)
Imagick::radialBlurImage — Radial blurs an image
$angle
[, int $channel
= Imagick::CHANNEL_ALL
] )Radial blurs an image.
angle
channel
成功时返回 TRUE
。
Example #1 Imagick::radialBlurImage()
<?php
function radialBlurImage ( $imagePath ) {
$imagick = new \ Imagick ( realpath ( $imagePath ));
//Blur 3 times with different radii
$imagick -> radialBlurImage ( 3 );
$imagick -> radialBlurImage ( 5 );
$imagick -> radialBlurImage ( 7 );
header ( "Content-Type: image/jpg" );
echo $imagick -> getImageBlob ();
}
?>