PHP imagecolorstotal - Get the number of colors in the palette of an image

PHP 图像处理PHP Image Processing

imagecolorstotal — Get the number of colors in the palette of an image.

Syntax

int imagecolorstotal ( resource $image )

This function returns the number of colors in the palette of the specified image.

Related Articles

PHP 图像处理PHP Image Processing

Other Extensions