Imagick::compositeImage

(PECL imagick 2, PECL imagick 3)

Imagick::compositeImage把一張圖合并到一張圖

說明

Imagick::compositeImage(
    Imagick $composite_object,
    int $composite,
    int $x,
    int $y,
    int $channel = Imagick::CHANNEL_ALL
): bool

把一張圖合并到另一張圖的指定位置

參數(shù)

composite_object

用于合并的圖片的Imagick對象

composite

合并操作,定義操作常量。 具體請查看 合并操作常量列表

x

相對圖像頂點左上位置(0,0)的橫坐標(biāo)

y

相對圖像頂點左上位置(0,0)的縱坐標(biāo)

channel

通過傳入一個通道常量,來開啟通道模式。為了支持多個通道,可以通過二進制運算的操作來合并多個通道常量。(Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channeltype constants using bitwise operators)可以參考這個列表 通道常量列表.

返回值

成功時返回 true