Bug #64641 [PATCH]: imagefilledpolygon doesn't draw horizontal line
| From: | cmb@php.net | Date: | Mon, 20 Jul 2015 22:06:46 +0000 |
| Subject: | Bug #64641 [PATCH]: imagefilledpolygon doesn't draw horizontal line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194578@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64641&edit=1
ID: 64641
Patch added by: cmb@php.net
Reported by: temposeb at free dot fr
Summary: imagefilledpolygon doesn't draw horizontal line
Status: Open
Type: Bug
Package: GD related
Operating System: Win XP Pro SP3
PHP Version: 5.3.24
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: git-am
Revision: 1437430006
URL: https://bugs.php.net/patch-display.php?bug=64641&patch=git-am&revision=1437430006
Previous Comments:
------------------------------------------------------------------------
[2013-04-12 19:08:46] temposeb at free dot fr
Description:
------------
At worst imagefilledpolygon( ) doesn't render at all object composed exclusively
of horizontal lines. No problem with vertical/diagonal lines or imagepolygon( ).
Test script:
---------------
$image = imagecreatetruecolor(640, 480) ;
// Vertical line, drawn
$points = array(100, 100, 100, 200, 100, 300) ;
imagefilledpolygon($image, $points, 3, 0xFFFF00) ;
// Horizontal line, not drawn
$points = array(300, 200, 400, 200, 500, 200) ;
imagefilledpolygon($image, $points, 3, 0xFFFF00) ;
header('Content-Type: image/png') ;
imagepng($image) ;
Expected result:
----------------
Two objects rendered : 1 vertical line, 1 horizontal line.
Actual result:
--------------
One object rendered : 1 vertical line.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64641&edit=1