| [ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 3 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 4 5 /** 6 * Image_Graph - PEAR PHP OO Graph Rendering Utility. 7 * 8 * PHP versions 4 and 5 9 * 10 * LICENSE: This library is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU Lesser General Public License as published by 12 * the Free Software Foundation; either version 2.1 of the License, or (at your 13 * option) any later version. This library is distributed in the hope that it 14 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser 16 * General Public License for more details. You should have received a copy of 17 * the GNU Lesser General Public License along with this library; if not, write 18 * to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 19 * 02111-1307 USA 20 * 21 * @category Images 22 * @package Image_Graph 23 * @subpackage Fill 24 * @author Jesper Veggerby <pear.nosey@veggerby.dk> 25 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen 26 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 27 * @version CVS: $Id: Image.php,v 1.7 2005/08/24 20:36:03 nosey Exp $ 28 * @link http://pear.php.net/package/Image_Graph 29 */ 30 31 /** 32 * Include file Image/Graph/Fill.php 33 */ 34 require_once 'Image/Graph/Fill.php'; 35 36 /** 37 * Fill using an image. 38 * 39 * @category Images 40 * @package Image_Graph 41 * @subpackage Fill 42 * @author Jesper Veggerby <pear.nosey@veggerby.dk> 43 * @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen 44 * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 45 * @version Release: 0.7.2 46 * @link http://pear.php.net/package/Image_Graph 47 */ 48 class Image_Graph_Fill_Image extends Image_Graph_Fill 49 { 50 51 /** 52 * The file name 53 * @var stirng 54 * @access private 55 */ 56 var $_filename; 57 58 /** 59 * The GD Image resource 60 * @var resource 61 * @access private 62 */ 63 var $_image; 64 65 /** 66 * Resize the image to the bounding box of the area to fill 67 * @var bool 68 * @access private 69 */ 70 var $_resize = true; 71 72 /** 73 * Image_Graph_ImageFill [Constructor] 74 * 75 * @param string $filename The filename and path of the image to use for filling 76 */ 77 function Image_Graph_Fill_Image($filename) 78 { 79 parent::Image_Graph_Fill(); 80 $this->_filename = $filename; 81 } 82 83 /** 84 * Return the fillstyle 85 * 86 * @param (something) $ID (Add description) 87 * @return int A GD fillstyle 88 * @access private 89 */ 90 function _getFillStyle($ID = false) 91 { 92 return $this->_filename; 93 } 94 95 } 96 97 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |