ImageMagick Imagick::shadowImage

(PECL imagick 2, PECL imagick 3)

Imagick::shadowImage — Simulates an image shadow


설명

public Imagick::shadowImage(
    float $opacity,
    float $sigma,
    int $x,
    int $y
): bool
                

Simulates an image shadow.


매개변수

opacity
sigma
x
y

반환 값

성공하면 true를 반환합니다.


Examples

예제 #1 Imagick::shadowImage()

                  
<?php
function shadowImage($imagePath) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->shadowImage(0.4, 10, 50, 5);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}

?>