ID:               34726
 Updated by:       [EMAIL PROTECTED]
 Reported By:      thomas dot jungbauer at eunet dot co dot at
-Status:           Open
+Status:           Bogus
-Bug Type:         *Graphics related
+Bug Type:         GD related
 Operating System: Whitebox 3
 PHP Version:      5.0.5
 New Comment:

The function expects integers to be passed.


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

[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

Reply via email to