update : 2015.11.03
php.shukuma.com

검색:
 
 
Simulates an image shadow

Imagick::shadowImage

(PECL imagick 2.0.0)

Imagick::shadowImageSimulates an image shadow

설명

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

Simulates an image shadow.

인수

opacity

sigma

x

y

반환값

성공시에 TRUE를 반환합니다.

예제

Example #1 Imagick::shadowImage()

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

?>