diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-12 16:29:14 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-12 16:29:14 +0000 |
commit | 4c71c431a983f0c1216981e2011e823d303848d7 (patch) | |
tree | 8fb31999ca1fb711e54c2eb8519f59116d9f05b6 /src/driver/gd.php | |
parent | 3f1b5624719e557f8c4f7cb49f57d92fe3b37b4d (diff) | |
download | zetacomponents-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.php | 6 |
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'] ); } |