Gmagick::getimagecolors

(PECL gmagick >= Unknown)

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

說明

public Gmagick::getimagecolors(): int

Returns the color of the specified colormap index.

參數(shù)

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

返回值

The number of colors in image.

錯誤/異常

錯誤時拋出 GmagickException。