note 54334 added to ref.image
| From: | alex at bestgames dot ro | Date: | Thu, 30 Jun 2005 17:04:26 +0000 |
| Subject: | note 54334 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91216@lists.php.net to get a copy of this message | ||
This function helps you to create a simple statistic graphics.
Arguments
$values, values should be separed by comma
$options may be separed by comma options can be timeline=format, title=a string or image=a source,
where format can be sec, min, hour, days/number, days/name, months/number, months/name or years.
$x, $y reffers to upper left corner where the graphic should begin
$image is the image resource
$graphic_color, $highlight_color, $grid_color are colors strings
Hope it will be useful!
Example of function:
function image_create_grid("1,2,3,4,5", "title=A simple
graphic,timeline=months/name", 0, 0, $image, "navy, "green", "gray")
The source can be accessed at http://www.bestgames.ro/source/statistics.txt,
it was too long to bve posted here.
----
Manual Page -- http://www.php.net/manual/en/ref.image.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54334
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54334&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54334&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54334&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54334&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54334&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54334&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54334&report=yes
Search -- http://master.php.net/manage/user-notes.php