Doc #71797 [Com]: GmagickDraw::setfillcolor() accepts GmagickPixel, not only string
| From: | benjamin dot morel at gmail dot com | Date: | Fri, 11 Mar 2016 11:37:07 +0000 |
| Subject: | Doc #71797 [Com]: GmagickDraw::setfillcolor() accepts GmagickPixel, not only string | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13313@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71797&edit=1
ID: 71797
Comment by: benjamin dot morel at gmail dot com
Reported by: benjamin dot morel at gmail dot com
Summary: GmagickDraw::setfillcolor() accepts GmagickPixel,
not only string
Status: Open
Type: Documentation Problem
Package: Documentation problem
Operating System: N/A
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Note that the $color parameter description should therefore be changed to:
GmagickPixel or string indicating color to use for filling.
Previous Comments:
------------------------------------------------------------------------
[2016-03-11 11:36:30] benjamin dot morel at gmail dot com
Description:
------------
setfillcolor() accepts a GmagickPixel, in addition to a string:
http://php.net/manual/en/gmagickdraw.setfillcolor.php
Source:
https://github.com/vitoc/gmagick/blob/master/gmagickdraw_methods.c#L637-L656
Proof:
$d = new GmagickDraw();
$d->setfillcolor(new GmagickPixel('#ff8800'));
echo $d->getfillcolor()->getcolor(); // rgb(65535,34952,0)
Expected result:
----------------
public GmagickDraw GmagickDraw::setfillcolor ( GmagickPixel|string $color )
Actual result:
--------------
public GmagickDraw GmagickDraw::setfillcolor ( string $color )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71797&edit=1