Bug #54001 [Opn->Csd]: The chord drawing is incorrect

From: Date: Wed, 16 Jul 2014 03:32:30 +0000
Subject: Bug #54001 [Opn->Csd]: The chord drawing is incorrect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186659@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54001&edit=1

 ID:                 54001
 Updated by:         yohgaki@php.net
 Reported by:        mallluhuct at gmail dot com
 Summary:            The chord drawing is incorrect
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            GD related
 Operating System:   Mac OS X 10.6.6
 PHP Version:        5.3.5
-Assigned To:        
+Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

It seems working as it should with 5.4 or later.


Previous Comments:
------------------------------------------------------------------------
[2011-02-12 17:43:27] mallluhuct at gmail dot com

Description:
------------
When I try to generate chords, I only get the outer border (not the arc) in no-
fill mode and if I want to generate a filled chord, it appears to fill the outer 
part of it, producing a triangle instead of a chord

Test script:
---------------
<?php

$width = 400;
$height = 300;

$canvas = imagecreatetruecolor($width, $height);

imagefilledrectangle($canvas, 0, 0, $width, $height, imagecolorallocatealpha($canvas, 0, 0, 0, 0));

imagefilledarc($canvas, 200, 150, $width / 2, $height / 2, 45, 135, imagecolorallocatealpha($canvas,
255, 255, 255, 0), IMG_ARC_CHORD /* | IMG_ARC_NOFILL */);

imagejpeg($canvas, '/path/to/chord.jpg');

Expected result:
----------------
Chord = pie - triangle

Actual result:
--------------
I am getting pie - chord (only the triangle)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=54001&edit=1


Thread (2 messages)

« previous php.bugs (#186659) next »