ID: 34726 User updated by: thomas dot jungbauer at eunet dot co dot at Reported By: thomas dot jungbauer at eunet dot co dot at Status: Bogus Bug Type: GD related Operating System: Whitebox 3 PHP Version: 5.0.5 New Comment:
already tried this.... same effect with: imagedashedline($bgImg, 393, 75, 638, 300, 1); imagedashedline($bgImg, 456, 75, 638, 300, 1); imagedashedline($bgImg, 330, 75, 638, 300, 1); imagedashedline($bgImg, 519, 75, 638, 300, 1); Previous Comments: ------------------------------------------------------------------------ [2005-10-04 12:39:49] [EMAIL PROTECTED] The function expects integers to be passed. ------------------------------------------------------------------------ [2005-10-04 12:35:40] thomas dot jungbauer at eunet dot co dot at 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 this bug report at http://bugs.php.net/?id=34726&edit=1