在线文档教程
PHP
Image/ImageMagick

Imagick::getImageColors

Imagick::getImageColors

(PECL imagick 2.0.0)

Imagick::getImageColors — Gets the number of unique colors in the image

Description

int Imagick::getImageColors ( void )

Gets the number of unique colors in the image.

Return Values

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

← Imagick::getImageColormapColor

Imagick::getImageColorspace →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/imagick.getimagecolors.php