#34726 [Opn->Bgs]: Problem with imagedashedline
| From: | sniper@php.net | Date: | Tue, 04 Oct 2005 10:39:50 +0000 |
| Subject: | #34726 [Opn->Bgs]: Problem with imagedashedline | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85982@lists.php.net to get a copy of this message | ||
ID: 34726
Updated by: sniper@php.net
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