summaryrefslogtreecommitdiffstats
path: root/src/renderer/3d.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-09 13:03:53 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-09 13:03:53 +0000
commit17b8e89991a4eee0944168aa10e0c43d2753db25 (patch)
tree773c0968c3b108bf77bb66e9be56e8c066616a9e /src/renderer/3d.php
parent3c5cb5cd65c6954f78ba0bd1ccbba44cb2ae4a9a (diff)
downloadzetacomponents-graph-17b8e89991a4eee0944168aa10e0c43d2753db25.zip
zetacomponents-graph-17b8e89991a4eee0944168aa10e0c43d2753db25.tar.gz
- Added option to gd driver to set an external image as background
- Got chart background images working again - Post process images in gd driver to not apply supersampling for images
Diffstat (limited to 'src/renderer/3d.php')
-rw-r--r--src/renderer/3d.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/renderer/3d.php b/src/renderer/3d.php
index 819b6f5..1997e56 100644
--- a/src/renderer/3d.php
+++ b/src/renderer/3d.php
@@ -1189,7 +1189,13 @@ class ezcGraphRenderer3d extends ezcGraphRenderer
$imageWidth = $imageData[0];
$imageHeight = $imageData[1];
- $imagePosition = new ezcGraphCoordinate( 0, 0 );
+ $imageWidth = min( $imageWidth, $boundings->x1 - $boundings->x0 );
+ $imageHeight = min( $imageHeight, $boundings->y1 - $boundings->y0 );
+
+ $imagePosition = new ezcGraphCoordinate(
+ $boundings->x0,
+ $boundings->y0
+ );
// Determine x position
switch ( true ) {
@@ -1233,9 +1239,6 @@ class ezcGraphRenderer3d extends ezcGraphRenderer
break;
}
- $imageWidth = min( $imageWidth, $boundings->x1 - $boundings->x0 );
- $imageHeight = min( $imageHeight, $boundings->y1 - $boundings->y0 );
-
// Texturize backround based on position and repetition
$position = new ezcGraphCoordinate(
$imagePosition->x,
OpenPOWER on IntegriCloud