Function __global->imagecolorresolvealpha

Definitions

sources_custom/phpstub.php

  • Get the index of the specified color + alpha or its closest possible alternative.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$image resource No No required parameter N/A N/A The image involved
$red integer No No required parameter N/A N/A Red
$green integer No No required parameter N/A N/A Green
$blue integer No No required parameter N/A N/A Blue
$alpha integer No No required parameter N/A N/A Alpha

Returns

  • Colour number (false: error)
  • Type: ~integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the index of the specified color + alpha or its closest possible alternative.
 *
 * @param  resource $image The image involved
 * @param  integer $red Red
 * @param  integer $green Green
 * @param  integer $blue Blue
 * @param  integer $alpha Alpha
 * @return ~integer Colour number (false: error)
 */

function imagecolorresolvealpha($image, int $red, int $green, int $blue, int $alpha)