Imagick
PHP Manual

Imagick::getImageColors

(PECL imagick 2.0.0)

Imagick::getImageColorsGets the number of unique colors in the image

说明

int Imagick::getImageColors ( void )

Gets the number of unique colors in the image.

返回值

成功时返回 TRUE .


Imagick
PHP Manual