Php/docs/imagick.getimagecolors

来自菜鸟教程
跳转至:导航、​搜索

Imagick::getImageColors

(PECL imagick 2, PECL imagick 3)

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


说明

public Imagick::getImageColors ( ) : int

Gets the number of unique colors in the image.


返回值

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