From 2948fe8d6055f6dfe6289e64bce426b5e0bb552f Mon Sep 17 00:00:00 2001 From: cassiopc Date: Fri, 31 Aug 2012 11:02:27 +0200 Subject: inclusion of dir 1.5.1 for boca --- boca-1.5.1/src/libchart/classes/Primitive.php | 59 +++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 boca-1.5.1/src/libchart/classes/Primitive.php (limited to 'boca-1.5.1/src/libchart/classes/Primitive.php') diff --git a/boca-1.5.1/src/libchart/classes/Primitive.php b/boca-1.5.1/src/libchart/classes/Primitive.php new file mode 100644 index 0000000..9e5a896 --- /dev/null +++ b/boca-1.5.1/src/libchart/classes/Primitive.php @@ -0,0 +1,59 @@ +img = $img; + } + + /** + * Draws a straight line + * + * @access public + * @param integer line start (X) + * @param integer line start (Y) + * @param integer line end (X) + * @param integer line end (Y) + * @param Color line color + */ + + function line($x1, $y1, $x2, $y2, $color, $width = 1) + { + imagefilledpolygon($this->img, array($x1, $y1 - $width / 2, $x1, $y1 + $width / 2, $x2, $y2 + $width / 2, $x2, $y2 - $width / 2), 4, $color->getColor($this->img)); +// imageline($this->img, $x1, $y1, $x2, $y2, $color->getColor($this->img)); + } + } +?> -- cgit v1.2.3