©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL imagick 2.0.0)
Imagick::waveImage — Applies wave filter to the image
$amplitude
, float $length
)Applies a wave filter to the image. 此方法在Imagick基于ImageMagick 6.2.9以上版本编译时可用。
amplitude
The amplitude of the wave.
length
The length of the wave.
成功时返回 TRUE
。
错误时抛出 ImagickException。
Example #1 WaveImage can be quite slow Imagick::waveImage()
<?php
function waveImage ( $imagePath , $amplitude , $length ) {
$imagick = new \ Imagick ( realpath ( $imagePath ));
$imagick -> waveImage ( $amplitude , $length );
header ( "Content-Type: image/jpg" );
echo $imagick -> getImageBlob ();
}
?>