Source for file GD.php
Documentation is available at GD.php
// +------------------------------------------------------------------------+
// | PEAR :: Image :: GIS :: GD Renderer |
// +------------------------------------------------------------------------+
// | Copyright (c) 2002-2005 Jan Kneschke <jan@kneschke.de> and |
// | Sebastian Bergmann <sb@sebastian-bergmann.de>. |
// +------------------------------------------------------------------------+
// | This source file is subject to version 3.00 of the PHP License, |
// | that is available at http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
// $Id: GD.php 299207 2010-05-10 10:21:58Z clockwerx $
require_once 'Image/GIS/Renderer.php';
* @author Jan Kneschke <jan@kneschke.de>
* @author Sebastian Bergmann <sb@sebastian-bergmann.de>
* @copyright Copyright © 2002-2005 Jan Kneschke <jan@kneschke.de> and Sebastian Bergmann <sb@sebastian-bergmann.de>
* @license http://www.php.net/license/3_0.txt The PHP License, Version 3.0
* Draws a line from ($x1, $y1) to ($x2, $y2)
* using the color rgb($r, $g, $b).
function drawLine($x1, $y1, $x2, $y2, $r, $g, $b) {
if (!isset ($this->palette[$r][$g][$b])) {
* Saves the rendered image to a given file.
* @param string $filename
* Shows the rendered image.
header('Content-Type: image/png');
Documentation generated on Mon, 11 Mar 2019 15:39:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|