Imagick::setImage
(No version information available, might be only in CVS)
Imagick::setImage — Replaces image in the object
설명
bool Imagick::setImage
( Imagick $replace
)
Warning
This function is currently not documented; only the argument list is available.
Warning
This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.
Replaces the current image sequence with the image from replace object.
매개변수
- replace
-
The replace Imagick object
반환값
성공시에 TRUE를 반환합니다.
예제
Example#1 A Imagick::setImage() example
An example of using Imagick::setImage()
<?php
/* Create the objects */
$image = new Imagick('source.jpg');
$replace = new Imagick('replace.jpg');
/* source.jpg is replaced with replace.jpg */
$image->setImage($replace);
/* output the image */
header('Content-type: image/jpeg');
echo $image;
?>