ID: 27766
User updated by: mussulma at uiuc dot edu
Reported By: mussulma at uiuc dot edu
-Status: Open
+Status: Duplicate
Bug Type: GD related
Operating System: RedHat Linux
PHP Version: 5.0.0RC1
New Comment:
Oops. Appears to be a duplicate of 25678.
Previous Comments:
------------------------------------------------------------------------
[2004-03-29 19:16:59] mussulma at uiuc dot edu
Description:
------------
imageellipse() does not seem to acknowledge anything is set in
imagesetthickness() even though the manual page for imagesetthickness
states it works for ellipses. If I change the function to
imagerectangle() it works fine.
Reproduce code:
---------------
<?php
$image = imagecreate(400,300);
imagesetthickness($image, 10);
$bg = imagecolorallocate($image, 0, 0, 0);
$col_ellipse = imagecolorallocate($image, 255,0,255);
imageellipse($image, 200, 150, 200, 200, $col_ellipse);
//imagerectangle($image, 50, 50, 100, 100, $col_ellipse);
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
?>
Expected result:
----------------
I expect to see a 10 pixel wide circle, but it's only one pixel wide.
If I comment out the ellipse line and uncomment the rectangle, I see a
10 pixel thick rectangle.
Actual result:
--------------
The imageellipse line only produces a 1-pixel wide ellipse, but the
imagerectangle produces a 10-pixel wide rectangle.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27766&edit=1