Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [Imagick

Protect Your Website Today


PHP Manual || Imagick

(PECL imagick 2.0.0)

Imagick::shadowImageSimulates an image shadow

Description

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

Simulates an image shadow.

Parameters

opacity

sigma

x

y

Return Values

Returns TRUE on success.

Examples

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();
}

?>



PHP Manual || Imagick