PHPTS:一键免费搭建 Nginx + PHP + MySQL 运行环境

Imagick::getImageColors

(PECL imagick 2.0.0)

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

说明

Imagick::getImageColors ( void ) : int

Gets the number of unique colors in the image.

返回值

Returns an integer, the number of unique colors in the image.