Function __global->imagecolortransparent

Definitions

sources_custom/phpstub.php

  • Define a color as transparent.
  • 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
$color ?integer No No Null N/A N/A Transparency colour identifier (null: get it, don't set it)

Returns

  • Transparency colour identifier
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Define a color as transparent.
 *
 * @param  resource $image The image handle
 * @param  ?integer $color Transparency colour identifier (null: get it, don't set it)
 * @return integer Transparency colour identifier
 */

function imagecolortransparent($image, ?int $color = null) : int