[ Index ] |
PHP Cross Reference of MyBB 1.8.38 |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 350 lines (9 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
Graph:: (10 methods):
__construct()
can_use()
color()
image_create_rectangle()
imagelinethick()
add_points()
add_x_labels()
set_bottom_label()
render()
output()
__construct() X-Ref |
Constructor of class. Initializes the barebore graph. |
can_use() X-Ref |
Check if GD support is enabled and this class can be used. return: bool True if the class can be used. |
color($red, $green, $blue) X-Ref |
Select and allocate a color to the internal image resource return: integer A color identifier param: integer $red The red value param: integer $green The green value param: integer $blue The blue value |
image_create_rectangle($x1, $y1, $x2, $y2, $radius=1, $color=null) X-Ref |
Creates a filled rectangle with optional rounded corners param: integer $x1 The initial x value param: integer $y1 The initial y value param: integer $x2 The ending x value param: integer $y2 The ending y value param: integer $radius The optional radius param: integer $color The optional rectangle color (defaults to black) |
imagelinethick($x1, $y1, $x2, $y2, $color, $thick = 1) X-Ref |
Creates a nicer thick line for angled lines return: int param: integer $x1 The initial x value param: integer $y1 The initial y value param: integer $x2 The ending x value param: integer $y2 The ending y value param: integer $color The optional rectangle color (defaults to black) param: integer $thick The optional thickness (defaults to 1) |
add_points($points) X-Ref |
Adds an array of x, y points to the internal points array param: array $points The array of x, y points to add |
add_x_labels($labels) X-Ref |
Adds an array of x labels to the internal labels array param: array $labels The array of x labels to add |
set_bottom_label($label) X-Ref |
Sets a bottom label param: string $label The bottom label to set |
render() X-Ref |
Renders the graph to memory |
output() X-Ref |
Outputs the graph to the screen in PNG format |
2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |