Source for file JPEGFormat.php
Documentation is available at JPEGFormat.php
* Description: Chart image export to JPEG
* @copyright (c) 1995-2008 by Steema Software SL. All Rights Reserved. <info@steema.com>
* @link http://www.steema.com
function __get( $property ) {
$method = "get{$property}";
function __set ( $property,$value ) {
$method = "set{$property}";
return $this->$method($value);
// $this->format = new JPEGImageWriteParam($this->Locale->getDefault());
// $tmpImageWriteParam = new ImageWriteParam();
// $this->format->setCompressionMode($tmpImageWriteParam->MODE_EXPLICIT);
public function save($ios) /* TODO throws IOException*/ {
if ($this->height <= 0) {
$img = $this->chart->image($this->width, $this->height);
imagejpeg($this->chart->getGraphics3D()->img,$ios);
|