|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-18 21:14 UTC] nlopess@php.net
[2020-02-07 06:11 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 20:00:01 2025 UTC |
Description: ------------ Example 1 has an invalid parameter count in the documentation. The line reading ... $im = imagecreatetruecolor('example.jpg', 100, 100); ... is in error. Expected result: ---------------- A working example: <?php $im = imagecreatetruecolor(100, 100); // sets background to red $red = imagecolorallocate($im, 255, 0, 0); imagefill($im, 0, 0, $red); header("Content-type: image/png"); imagepng($im); imagedestroy($im); ?>