PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Imagick::__construct> <Imagick::compareImages
Last updated: Fri, 05 Sep 2008

view this page in

Imagick::compositeImage

(No version information available, might be only in CVS)

Imagick::compositeImageある画像を別の画像に合成する

説明

bool Imagick::compositeImage ( Imagick $composite_object , int $composite , int $x , int $y [, int $channel ] )
警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

ある画像を、別の画像の指定した位置に合成します。

パラメータ

composite_object

合成する画像を保持する Imagick オブジェクト。

compose

合成演算子。合成演算定数 を参照ください。

x

合成する位置の列オフセット。

y

合成する位置の行オフセット。

channel

そのチャネルモードで使用可能なチャネル定数を指定します。 複数のチャネルを指定するには、チャネル型定数をビット演算子で結合します。 デフォルトは Imagick::CHANNEL_ALL です。 チャネル定数 の一覧を参照ください。

返り値

成功した場合に TRUE を返します。



add a note add a note User Contributed Notes
Imagick::compositeImage
vincent dot hoen at gmail dot com
31-Jul-2007 10:44
Here is a way to composite an image onto another :

//Creating two Imagick object
$first = new Imagick('first.jpg');
$second = new Imagick('second.jpg');

//Second image is put on top of the first
$first->compositeImage($second, $second->getImageCompose(), 5, 5);

//new image is saved as final.jpg
$first->writeImage('final.jpg');

Imagick::__construct> <Imagick::compareImages
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites