Imagick::spliceImage
(PECL imagick 2, PECL imagick 3)
Imagick::spliceImage — Splices a solid color into the image
Description
Splices a solid color into the image.
Parameters
width
height
x
y
Return Values
Returns true on success.
Examples
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();
}
?>来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
