TeeChartPHP
[ class tree: TeeChartPHP ] [ index: TeeChartPHP ] [ all elements ]

Source for file WBMPFormat.php

Documentation is available at WBMPFormat.php

  1. <?php
  2.  
  3.  /**
  4.  * WBMPFormat class
  5.  *
  6.  * Description: Chart Image export to WBMP
  7.  *
  8.  * @author
  9.  * @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
  10.  * @version 1.0
  11.  * @package TeeChartPHP
  12.  * @subpackage exports
  13.  * @link http://www.steema.com
  14.  */
  15.  
  16.  class WBMPFormat extends ImageExportFormat {
  17.  
  18.     // Interceptors
  19.     function __get$property {
  20.       $method ="get{$property}";
  21.       if method_exists$this$method ) ) {
  22.         return $this->$method();
  23.       }
  24.     }
  25.  
  26.     function __set $property,$value {
  27.       $method ="set{$property}";
  28.       if method_exists$this$method ) ) {
  29.         return $this->$method($value);
  30.       }
  31.     }
  32.  
  33.     public function WBMPFormat($c{
  34.         parent::ImageExportFormat($c);
  35.  
  36.         $this->fileExtension = "wbmp";
  37.     }
  38.  
  39.     public function getOptions({
  40.         return $this->format;
  41.     }
  42.  
  43.     public function setOptions($params{
  44.         $this->format = $params;
  45.     }
  46.  
  47.     public function save($ios/* TODO throws IOException*/ {
  48.         if ($this->width <= 0{
  49.             $this->width 400;
  50.         }
  51.  
  52.         if ($this->height <= 0{
  53.             $this->height 300;
  54.         }
  55.  
  56.         $img $this->chart->image($this->width$this->height);
  57.         imagewbmp($this->chart->getGraphics3D()->img,$ios);
  58.     }
  59. }
  60.  
  61. ?>

Documentation generated on Wed, 16 Jun 2010 12:09:20 +0200 by phpDocumentor 1.4.1