Function __global->imagecolorstotal

Definitions

sources_custom/phpstub.php

  • Find out the number of colors in an image's palette.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$image resource No No required parameter N/A N/A The image involved

Returns

  • Total number of colours
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find out the number of colors in an image's palette.
 *
 * @param  resource $image The image involved
 * @return integer Total number of colours
 */

function imagecolorstotal($image) : int