From:             paul dot yarkov at gmail dot com
Operating system: Windows 2000 SP4
PHP version:      5.2.3
PHP Bug Type:     GD related
Bug description:  imageline() STILL doesn't work perfectly with 
imagesetthickness()

Description:
------------
imageline() STILL doesn't honor imagesetthickness() settings.

Note: It's not a bug #40764! It's ANOTHER bug and ANOTHER OS used! 




Reproduce code:
---------------
<?php
$image=imagecreatetruecolor(400, 400);
$white = imagecolorallocate($image, 255, 255, 255);
$black = imagecolorallocate($image, 0, 0, 0);
imagefill($image, 0, 0, $white);
imagesetthickness($image, 10);

imageline($image, 200, 0, 200, 400, $black);
imageline($image, 0, 200, 400, 200, $black);
imageline($image, 0, 0, 400, 400, $black);
imageline($image, 0, 400, 400, 0, $black);

header("Content-type: image/png");
header("Cache-Control: no-cache;");
imagepng($image);

imagedestroy($image);
?>


Expected result:
----------------
This should draw four lines, all 10 pixels thick.



Actual result:
--------------
Only the vertical and horizonal lines is the correct thickness.


-- 
Edit bug report at http://bugs.php.net/?id=41940&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41940&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41940&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41940&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41940&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41940&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41940&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41940&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41940&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41940&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41940&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41940&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41940&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41940&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41940&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41940&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41940&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41940&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41940&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41940&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41940&r=mysqlcfg

Reply via email to