update : 2015.11.03
php.shukuma.com

검색:
 
 
Splices a solid color into the image

Imagick::spliceImage

(PECL imagick 2.0.0)

Imagick::spliceImageSplices a solid color into the image

설명

bool Imagick::spliceImage ( int $width , int $height , int $x , int $y )

Splices a solid color into the image.

인수

width

height

x

y

반환값

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

예제

Example #1 Imagick::spliceImage()

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

?>