Function __global->imagecolordeallocate

Definitions

sources_custom/phpstub.php

  • De-allocate a color for an image.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

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

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * De-allocate a color for an image.
 *
 * @param  resource $image The image involved
 * @param  integer $colour Colour number
 * @return boolean Success status
 */

function imagecolordeallocate($image, int $colour) : bool