php / 8.1.5 / gmagick.getimagecolors.html /

Gmagick::getimagecolors

(PECL gmagick >= Unknown)

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

Description

public Gmagick::getimagecolors(): int

Returns the color of the specified colormap index.

Parameters

This function has no parameters.

Return Values

The number of colors in image.

Errors/Exceptions

Throws an GmagickException on error.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/gmagick.getimagecolors.php