Function __global->imagecreatefrompng

Definitions

sources_custom/phpstub.php

  • Create a new image from a PNG file on disk.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$path PATH No No required parameter N/A N/A The PNG file

Returns

  • The image handle (false: error)
  • Type: ~resource
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Create a new image from a PNG file on disk.
 *
 * @param  PATH $path The PNG file
 * @return ~resource The image handle (false: error)
 */

function imagecreatefrompng(string $path)