Function __global->imagealphablending

Definitions

sources_custom/phpstub.php

  • Set the blending mode 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 handle
$blendmode boolean No No required parameter N/A N/A Whether to alpha blend

Returns

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

Preview

Code (PHP)

/**
 * Set the blending mode for an image.
 *
 * @param  resource $image The image handle
 * @param  boolean $blendmode Whether to alpha blend
 * @return boolean Success status
 */

function imagealphablending($image, bool $blendmode) : bool