summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-12-13 10:55:46 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-12-13 10:55:46 +0000
commit01dbf33190addd6ddf305f981816ffe8cac0c0a1 (patch)
treee8e2161bfeee3319f3cf082f586f7824de89beb6 /docs
parent3957884f00e772d1c28b876fb03d1099aad15625 (diff)
downloadzetacomponents-graph-01dbf33190addd6ddf305f981816ffe8cac0c0a1.zip
zetacomponents-graph-01dbf33190addd6ddf305f981816ffe8cac0c0a1.tar.gz
- Fixed issue #12238: Graph doc error
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/tutorial_driver_gd.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/tutorial/tutorial_driver_gd.php b/docs/tutorial/tutorial_driver_gd.php
index dc9e7c7..cfa86fa 100644
--- a/docs/tutorial/tutorial_driver_gd.php
+++ b/docs/tutorial/tutorial_driver_gd.php
@@ -10,8 +10,12 @@ $graph->legend = false;
$graph->driver = new ezcGraphGdDriver();
$graph->options->font = 'tutorial_font.ttf';
-// Generate a Jpeg with lower quality. The default settings result in a better
-// quality image
+// Generate a Jpeg with lower quality. The default settings result in a image
+// with better quality.
+//
+// The reduction of the supersampling to 1 will result in no anti aliasing of
+// the image. JPEG is not the optimal format for grapics, PNG is far better for
+// this kind of images.
$graph->driver->options->supersampling = 1;
$graph->driver->options->jpegQuality = 100;
$graph->driver->options->imageFormat = IMG_JPEG;
OpenPOWER on IntegriCloud