ID:               30229
 Updated by:       [EMAIL PROTECTED]
 Reported By:      a25617 at alunos dot det dot ua dot pt
-Status:           Open
+Status:           Verified
 Bug Type:         GD related
 Operating System: Windows XP
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      pajoye
 New Comment:

Got the fix, will commit asap.

--Pierre


Previous Comments:
------------------------------------------------------------------------

[2004-09-25 15:21:46] a25617 at alunos dot det dot ua dot pt

Description:
------------
When using a transparency level above zero, drawing a rectangle will
produce 4 dots in the corners. I think this is because the 4 lines of
the rectangle are drawn and the corners will be overridden 2 times
making the color on the corners darker than the rest.

Reproduce code:
---------------
<?php
  $im = imagecreatetruecolor(100, 100);
  $bg = imagecolorallocate($im, 250, 250, 250);
  $blue = imagecolorallocatealpha($im, 150, 150, 255, 60);
  imagefilledrectangle($im, 0, 0, 100, 100, $bg);
  imagerectangle($im, 20, 20, 80, 80, $blue);
  imagepng($im);
  imagedestroy($im);
?>

Expected result:
----------------
And grayed backgrounded image 100x100 with a blue rectangle 60x60 in
the middle.

Actual result:
--------------
Everything is ok except the corners of the rectangle are darker. In
some complex examples like drawing gantt or bar charts that bug stands
out even more.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30229&edit=1

Reply via email to