#32891 [Opn->Ver]: Bug using imagefilledellipse at position 0 vertically
| From: | sniper@php.net | Date: | Sat, 30 Apr 2005 01:56:35 +0000 |
| Subject: | #32891 [Opn->Ver]: Bug using imagefilledellipse at position 0 vertically | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78456@lists.php.net to get a copy of this message | ||
ID: 32891
Updated by: sniper@php.net
Reported By: anders at apt dot no
-Status: Open
+Status: Verified
Bug Type: GD related
Operating System: *
PHP Version: 4CVS, 5.*CVS (2005-04-30)
Previous Comments:
------------------------------------------------------------------------
[2005-04-29 14:04:15] anders at apt dot no
Description:
------------
While drawing an elliptic object positioned vertically at the top(0px)
the second line is not drawn. I'm using the embedded GD library (2.0.28
compatible).
Reproduce code:
---------------
if ($im = @imagecreatetruecolor(100, 100)) {
$intCol = imagecolorallocate($im, 0xFF, 0x02, 0xF0);
imagefilledellipse($im, 50, 0, 50, 50, $intCol);
header('Content-type: image/png');
imagepng($im);
} else {
echo 'Could not create truecolor image';
}
Expected result:
----------------
I expect to see half a circle, with it's center at 50 x 0, like this:
http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_expected_result.png
Actual result:
--------------
Instead I get this circle, with one line missing:
http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_actual_result.png
This image was created with the reproduce code:
http://kunde.apt.no/aso/imagefilledellipse/imagefilledellipse_bug.php
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32891&edit=1