Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Gmagick::getimagechanneldepthGmagick::getimagecolorspace>
^GmagickLast updated: Mon, 26 Oct 2026

Gmagick::getimagecolors

(PECL gmagick >= Unknown)

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

Description

public function 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.


<Gmagick::getimagechanneldepthGmagick::getimagecolorspace>
^GmagickLast updated: Mon, 26 Oct 2026