#27995 [Opn->Csd]: imagefilltoborder fails to fill a polygon

From: Date: Wed, 14 Apr 2004 22:39:57 +0000
Subject: #27995 [Opn->Csd]: imagefilltoborder fails to fill a polygon
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58143@lists.php.net to get a copy of this message
ID: 27995 Updated by: iliaa@php.net Reported By: agarcia at at4 dot net -Status: Open +Status: Closed Bug Type: GD related Operating System: linux PHP Version: 4.3.6RC3 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-04-14 12:17:31] agarcia at at4 dot net Description: ------------ imagefilltoborder stops filling a polygon before reaching all the borders. The code provided works as expected with php 4.3.4. Not tested with 4.3.5 Reproduce code: --------------- header("Content-type: image/png"); $id = @imagecreate(200, 200); $background_color = imagecolorallocate($id, 0, 0, 0); $color = imagecolorallocate($id, 255, 0, 0); $contorno = imagecolorallocate($id, 0, 255, 0); $puntos = array(135,22,138,22,138,29,158,29,158,49,136,49,136,41,132,41,132,33,135,33,135,22); imagepolygon($id, &$puntos, floor(count($puntos)/2), $contorno); imagefilltoborder($id, 145, 35, $contorno, $color); ImagePng( $id ); ImageDestroy( $id ); Expected result: ---------------- A red filled green polygon Actual result: -------------- A partially red filled green polygon ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27995&edit=1

« previous php.bugs (#58143) next »