Function __global->imagecolorat

Definitions

sources_custom/phpstub.php

  • Get the index of the color of a pixel.
  • 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 handle
$x integer No No required parameter N/A N/A X ordinate
$y integer No No required parameter N/A N/A Y ordinate

Returns

  • The colour
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the index of the color of a pixel.
 *
 * @param  resource $image The image handle
 * @param  integer $x X ordinate
 * @param  integer $y Y ordinate
 * @return integer The colour
 */

function imagecolorat($image, int $x, int $y) : int