|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-29 19:20 UTC] mussulma at uiuc dot edu
[2004-03-30 02:25 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 23:00:01 2025 UTC |
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.