|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-14 18:39 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
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