Imagick
PHP 手册

Imagick::mergeImageLayers

(PECL imagick 2.1.0)

Imagick::mergeImageLayersMerges image layers

说明

bool Imagick::mergeImageLayers ( int $layer_method )

Merges image layers into one. This method is useful when working with image formats that use multiple layers such as PSD. The merging is controlled using the layer_method which defines how the layers are merged. 此方法在Imagick基于ImageMagick 6.3.7以上版本编译时可用。

参数

layer_method

One of the Imagick::LAYERMETHOD_* constants

返回值

成功时返回 TRUE

错误/异常

错误时抛出 ImagickException。

参见


Imagick
PHP 手册