PHP Conference Japan 2024

Imagick::rotationalBlurImage

(PECL imagick 3 >= 3.3.0)

Imagick::rotationalBlurImage對影像套用旋轉模糊

說明

public Imagick::rotationalBlurImage(float $angle, int $channel = Imagick::CHANNEL_DEFAULT): bool

對影像套用旋轉模糊。

參數

angle

套用模糊的角度。

channel

請提供任何適用於您通道模式的通道常數。要應用於多個通道,請使用位元運算子組合通道常數。預設為Imagick::CHANNEL_DEFAULT。請參考此通道常數列表。

回傳值

成功時回傳true

範例

範例 #1 Imagick::rotationalBlurImage()

<?php
function rotationalBlurImage($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->rotationalBlurImage(3);
$imagick->rotationalBlurImage(5);
$imagick->rotationalBlurImage(7);
header("Content-Type: image/jpg");
echo
$imagick->getImageBlob();
}

?>

新增註記

使用者貢獻的註記

此頁面沒有使用者貢獻的註記。
To Top