summaryrefslogtreecommitdiffstats
path: root/src/driver/gd.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-12 16:29:14 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-12 16:29:14 +0000
commit4c71c431a983f0c1216981e2011e823d303848d7 (patch)
tree8fb31999ca1fb711e54c2eb8519f59116d9f05b6 /src/driver/gd.php
parent3f1b5624719e557f8c4f7cb49f57d92fe3b37b4d (diff)
downloadzetacomponents-graph-4c71c431a983f0c1216981e2011e823d303848d7.zip
zetacomponents-graph-4c71c431a983f0c1216981e2011e823d303848d7.tar.gz
- Added tests and implementation for background images in charts
- Fixed bug with image sizes in gd driver
Diffstat (limited to 'src/driver/gd.php')
-rw-r--r--src/driver/gd.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/gd.php b/src/driver/gd.php
index 19064c2..6aa43f3 100644
--- a/src/driver/gd.php
+++ b/src/driver/gd.php
@@ -108,7 +108,7 @@ class ezcGraphGdDriver extends ezcGraphDriver
'image' => imagecreatefrompng( $file )
);
default:
- throw new ezcGraphGdDriverUnsupportedImageFormatException( $data[2] );
+ throw new ezcGraphGdDriverUnsupportedImageTypeException( $data[2] );
}
}
@@ -601,8 +601,8 @@ class ezcGraphGdDriver extends ezcGraphDriver
$this->supersample( $position->y ),
0,
0,
- $this->supersample( $position->x + $width ),
- $this->supersample( $position->y + $height ),
+ $this->supersample( $width ),
+ $this->supersample( $height ),
$imageFile['width'], $imageFile['height']
);
}
OpenPOWER on IntegriCloud