|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-10 18:38 UTC] pajoye@php.net
[2006-03-10 19:04 UTC] mike at agftech dot com
[2006-03-10 19:17 UTC] pajoye@php.net
[2006-03-10 19:41 UTC] mike at agftech dot com
[2006-03-10 20:25 UTC] pajoye@php.net
[2006-03-10 20:31 UTC] mike at agftech dot com
[2006-03-10 22:28 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 21:00:01 2025 UTC |
Description: ------------ imagefill() does not work on images created with the function imagecreatetruecolor(). Any attempt to use imagefill() returns the standard black image. Note: I am using the GD version that is bundled with PHP 5.1.2 Reproduce code: --------------- $print = imagecreatetruecolor(300, 500); $image = imagecreatetruecolor(555, 555); $color = imagecolorallocate($image, 255, 255, 0); imagefill($image, 0, 0, $color); imagecopy($image, $print, 50, 50, 0, 0, 300, 500); header("Content-type: image/jpg"); imagejpeg($image); imagedestroy($image); Expected result: ---------------- A 555x555 yellow square with a 300x500 black square offset 50x50 inside. Actual result: -------------- 555x555 black square.