Primitive Class Reference
List of all members.Public Member Functions | |
Primitive ($img) | |
line ($x1, $y1, $x2, $y2, $color, $width=1) | |
outlinedBox ($x1, $y1, $x2, $y2, $color0, $color1) |
Detailed Description
Graphic primitives, extends GD with chart related primitives.
Member Function Documentation
Primitive::Primitive | ( | $ | img | ) |
Creates a new primitive object
- Parameters:
-
resource GD image resource
Primitive::line | ( | $ | x1, | |
$ | y1, | |||
$ | x2, | |||
$ | y2, | |||
$ | color, | |||
$ | width = 1 | |||
) |
Draws a straight line.
- Parameters:
-
integer line start (X) integer line start (Y) integer line end (X) integer line end (Y) Color line color
Primitive::outlinedBox | ( | $ | x1, | |
$ | y1, | |||
$ | x2, | |||
$ | y2, | |||
$ | color0, | |||
$ | color1 | |||
) |
The documentation for this class was generated from the following file:
- Primitive.php