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.

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

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