Function __global->imagecolorsforindex

Definitions

sources_custom/phpstub.php

  • Get the colors for an index.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

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

Returns

  • Map of components
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the colors for an index.
 *
 * @param  resource $image The image handle
 * @param  integer $color The colour
 * @return array Map of components
 */

function imagecolorsforindex($image, int $color) : array