|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-04-27 17:02 UTC] pajoye@php.net
[2008-04-27 17:08 UTC] simslim at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 04:00:01 2025 UTC |
Description: ------------ I use imagefill to fill a picture, but no matter what I enter as start x and y, it always fills the whole image (with x and y higher then 0 and not higher then image sizes) Reproduce code: --------------- header("Content-Type: image/png"); $img = imagecreatetruecolor(100,100); $red = imagecolorallocate($img,255,0,0); $green = imagecolorallocate($img,0,255,0); imagefill($img,0,0,$red); imagefill($img,50,0,$green); imagepng($img); Expected result: ---------------- A picture, 100 x 100, with the left half red and the right half green Actual result: -------------- A picture, 100 x 100, completely green