From:             thomas dot jungbauer at eunet dot co dot at
Operating system: Whitebox 3
PHP version:      5.0.5
PHP Bug Type:     *Graphics related
Bug description:  Problem with imagedashedline

Description:
------------
Hi,

I am trying to draw 4 dashed lines between some pictures. 

The following attributes I am using (calculating) (pls see source code
below)

371+22, 20+55, 425+(425/2), 300, 1
434+22, 20+55, 425+(425/2), 300, 1
308+22, 20+55, 425+(425/2), 300, 1
497+22, 20+55, 425+(425/2), 300, 1



Reproduce code:
---------------
$bgImg = imageCreate(850, 400);
ImageColorAllocate ($bgImg, 55, 77, 134);

$logo_server = "./images/logo_server.png";
imageCopyMerge($bgImg, $dist_server, $start_pic, 75, 0, 0, 43, 55, 100);
[...]
// merging all pictrues (of the servers) in $bmImg

imagedashedline($bgImg, 393, 75, 425+(425/2), 300, 1);
imagedashedline($bgImg, 456, 75, 425+(425/2), 300, 1);
imagedashedline($bgImg, 330, 75, 425+(425/2), 300, 1);
imagedashedline($bgImg, 519, 75, 425+(425/2), 300, 1);

Expected result:
----------------
However only 2 lines are drawn. When I try imageline (instead of
imagedashedline), I get all 4 lines.

I am not quite sure why this happens. Perhaps because the x2-coord is a
decimal ...???

any ideas?

kind regards
thomas


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

Reply via email to