Gmagick
PHP 手册

Gmagick::getimagecolors

(PECL gmagick >= Unknown)

Gmagick::getimagecolors Returns the color of the specified colormap index

说明

public void Gmagick::getimagecolors ( void )

Returns the color of the specified colormap index.

参数

This function has no parameters.

返回值

The number of colors in image.

错误/异常

Throws an GmagickException on error.


Gmagick
PHP 手册